mirror of
https://github.com/KDE/konsole.git
synced 2026-06-12 16:05:45 -04:00
When setting window size, take into account when menubar is not visible
Take into account menubar visibility when sizing a new window. Note that this is only used when 'Use current window size on next startup' is unchecked. Thanks to Roman Gilg subdiff gmail com for patch BUG: 359662 REVIEW: 27803
This commit is contained in:
@@ -823,6 +823,8 @@ void MainWindow::showEvent(QShowEvent* aEvent)
|
||||
menuBar()->setVisible(_menuBarInitialVisibility);
|
||||
_toggleMenuBarAction->setChecked(_menuBarInitialVisibility);
|
||||
_menuBarInitialVisibilityApplied = true;
|
||||
if(!KonsoleSettings::saveGeometryOnExit())
|
||||
resize(sizeHint());
|
||||
}
|
||||
|
||||
// Call parent method
|
||||
|
||||
Reference in New Issue
Block a user