1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 11:02:19 +01:00

Save geometry of Preferences window

Closes #1514
This commit is contained in:
David Rosca 2014-11-10 12:05:49 +01:00
parent 03c875b229
commit 63b7e41713

View File

@ -517,6 +517,10 @@ Preferences::Preferences(BrowserWindow* window, QWidget* parent)
ui->html5permissions->setDisabled(true); ui->html5permissions->setDisabled(true);
#endif #endif
settings.beginGroup(QSL("Preferences"));
restoreGeometry(settings.value(QSL("Geometry")).toByteArray());
settings.endGroup();
QzTools::setWmClass("Preferences", this); QzTools::setWmClass("Preferences", this);
} }
@ -1113,6 +1117,8 @@ void Preferences::saveSettings()
Preferences::~Preferences() Preferences::~Preferences()
{ {
Settings().setValue(QSL("Preferences/Geometry"), saveGeometry());
delete ui; delete ui;
delete m_autoFillManager; delete m_autoFillManager;
delete m_pluginsList; delete m_pluginsList;