mirror of
https://github.com/KDE/konsole.git
synced 2026-05-19 12:09:25 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user