summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-08-03 02:42:16 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-08-04 06:09:48 -0400
commite40245abf46f133292636909fbacf10fc0712932 (patch)
tree507de651024c3cb2f59f1de744e5faad07bd7bbf /src/mainwindow.cpp
parente4418b95fa24f9caea32adfe9d957ce37e46f127 (diff)
moved geometry handling to EditExecutablesDialog itself
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 0618f949..7ef0c9b9 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2480,21 +2480,14 @@ bool MainWindow::modifyExecutablesDialog()
EditExecutablesDialog dialog(m_OrganizerCore, this);
- QSettings &settings = m_OrganizerCore.settings().directInterface();
- QString key = QString("geometry/%1").arg(dialog.objectName());
-
- if (settings.contains(key)) {
- dialog.restoreGeometry(settings.value(key).toByteArray());
- }
-
result = (dialog.exec() == QDialog::Accepted);
- settings.setValue(key, dialog.saveGeometry());
refreshExecutablesList();
updatePinnedExecutables();
} catch (const std::exception &e) {
reportError(e.what());
}
+
return result;
}