Commit ad5b6e60 authored by Eike Ziller's avatar Eike Ziller
Browse files

Preserve preference dialog size



Change-Id: Ibc4a0d62eab0823253e4050001c7d7904fef4d33
Task-number: QTCREATORBUG-14522
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent a802ca77
......@@ -705,9 +705,13 @@ bool SettingsDialog::execDialog()
if (!m_running) {
m_running = true;
m_finished = false;
static const QLatin1String kPreferenceDialogSize("Core/PreferenceDialogSize");
if (ICore::settings()->contains(kPreferenceDialogSize))
resize(ICore::settings()->value(kPreferenceDialogSize).toSize());
exec();
m_running = false;
m_instance = 0;
ICore::settings()->setValue(kPreferenceDialogSize, size());
// make sure that the current "single" instance is deleted
// we can't delete right away, since we still access the m_applied member
deleteLater();
......
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