Sync the state of the 'Show Menu Bar' action with the visibility of the menu bar when it is changed as a result of applying a profile setting.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754736
This commit is contained in:
Robert Knight
2007-12-30 16:50:58 +00:00
parent 845a29f66f
commit 5279d4ba4b
2 changed files with 5 additions and 1 deletions

View File

@@ -96,10 +96,11 @@ MainWindow::MainWindow()
void MainWindow::setMenuBarVisibleOnce(bool visible)
{
if (_menuBarVisibilitySet)
if (_menuBarVisibilitySet || menuBar()->isTopLevelMenu() )
return;
menuBar()->setVisible(visible);
_toggleMenuBarAction->setChecked(visible);
_menuBarVisibilitySet = true;
}