aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-04-07 22:51:13 +0200
committerGerald Combs <gerald@wireshark.org>2015-04-07 21:03:18 +0000
commit461666bcd1aacc8f360fca76129fe4a545819fc9 (patch)
tree95e8833623579bb249717c50fcad49bdd3f51b40
parent69a435bb082578eaf191fa1ce27929b869c29788 (diff)
Qt: fix maximized state apply
Preferences are not loaded yet when we call MainWindow::loadWindowGeometry() Anyway, prefs.gui_geometry_save_maximized should only be checked when saving preferences (MainWindow::saveWindowGeometry() method) like what we do in GTK UI Change-Id: I8eb01a5f4f7672fbf5846bc576584e28f72d5e31 Reviewed-on: https://code.wireshark.org/review/7978 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r--ui/qt/main_window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index dcb371c73c..381dc1e651 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -566,7 +566,7 @@ void MainWindow::loadWindowGeometry()
int min_sensible_dimension_ = 200;
#ifndef Q_OS_MAC
- if (prefs.gui_geometry_save_maximized && recent.gui_geometry_main_maximized) {
+ if (recent.gui_geometry_main_maximized) {
setWindowState(Qt::WindowMaximized);
} else
#endif