Commit 0a5e2b34 authored by Kurt Hindenburg's avatar Kurt Hindenburg

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
parent 44d4ed04
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment