From 0a5e2b34971e339561e60c674a6fa5ec7eb941da Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sat, 21 May 2016 18:43:10 -0400 Subject: [PATCH] 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 --- src/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d2143b8a5..855dd99e1 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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