From 63b7e41713ae9c0efe1ddad3b9237aaf78de04b3 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 10 Nov 2014 12:05:49 +0100 Subject: [PATCH] Save geometry of Preferences window Closes #1514 --- src/lib/preferences/preferences.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/preferences/preferences.cpp b/src/lib/preferences/preferences.cpp index 9c9587938..2abaf2b17 100644 --- a/src/lib/preferences/preferences.cpp +++ b/src/lib/preferences/preferences.cpp @@ -517,6 +517,10 @@ Preferences::Preferences(BrowserWindow* window, QWidget* parent) ui->html5permissions->setDisabled(true); #endif + settings.beginGroup(QSL("Preferences")); + restoreGeometry(settings.value(QSL("Geometry")).toByteArray()); + settings.endGroup(); + QzTools::setWmClass("Preferences", this); } @@ -1113,6 +1117,8 @@ void Preferences::saveSettings() Preferences::~Preferences() { + Settings().setValue(QSL("Preferences/Geometry"), saveGeometry()); + delete ui; delete m_autoFillManager; delete m_pluginsList;