diff --git a/shell/shell.cpp b/shell/shell.cpp index 317631182..1eb3e07e9 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -188,7 +187,7 @@ void Shell::setupActions() setStandardToolBarMenuEnabled(true); - m_showMenuBarAction = KStandardAction::showHideMenubar( this, SLOT( slotShowMenubar() ), actionCollection()); + m_showMenuBarAction = KStandardAction::showMenubar( this, SLOT( slotShowMenubar() ), actionCollection()); m_fullScreenAction = KStandardAction::fullScreen( this, SLOT( slotUpdateFullScreen() ), this,actionCollection() ); } @@ -281,7 +280,7 @@ void Shell::setFullScreen( bool useFullScreen ) void Shell::showEvent(QShowEvent *e) { - m_showMenuBarAction->setActive( menuBar()->isVisible() ); + m_showMenuBarAction->setChecked( menuBar()->isVisible() ); KParts::MainWindow::showEvent(e); } diff --git a/shell/shell.h b/shell/shell.h index f81ca96b8..850e7e37f 100644 --- a/shell/shell.h +++ b/shell/shell.h @@ -19,7 +19,6 @@ #include class KCmdLineArgs; -class KDualAction; class KRecentFilesAction; class KToggleAction; @@ -100,7 +99,7 @@ private: bool m_fileformatsscanned; KAction* m_printAction; KToggleAction* m_fullScreenAction; - KDualAction* m_showMenuBarAction; + KToggleAction* m_showMenuBarAction; bool m_menuBarWasShown, m_toolBarWasShown; KUrl m_openUrl; };