summaryrefslogtreecommitdiff
path: root/src/profilesdialog.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-08-03 02:52:55 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-08-04 06:09:48 -0400
commit7eed0450e84cc465b0d163a64ebb4d410db688c4 (patch)
tree297bd5c3783c1fcae1a5f5e6af965a874d064fa3 /src/profilesdialog.cpp
parente40245abf46f133292636909fbacf10fc0712932 (diff)
moved geometry handling to ProfilesDialog
Diffstat (limited to 'src/profilesdialog.cpp')
-rw-r--r--src/profilesdialog.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/profilesdialog.cpp b/src/profilesdialog.cpp
index d7863fc8..25fff2b2 100644
--- a/src/profilesdialog.cpp
+++ b/src/profilesdialog.cpp
@@ -84,6 +84,21 @@ ProfilesDialog::~ProfilesDialog()
delete ui;
}
+int ProfilesDialog::exec()
+{
+ auto& settings = Settings::instance();
+
+ if (auto v=settings.geometry().getProfilesDialog()) {
+ restoreGeometry(*v);
+ }
+
+ const int r = QDialog::exec();
+
+ settings.geometry().setProfilesDialog(saveGeometry());
+
+ return r;
+}
+
void ProfilesDialog::showEvent(QShowEvent *event)
{
TutorableDialog::showEvent(event);