diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-16 06:03:05 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-16 06:03:05 -0400 |
| commit | 799ddb1b2477434252d06975fd4c68106dc3826f (patch) | |
| tree | 4cb0c555f1e38dfd25e893c132a16e16fb035635 /src/profilesdialog.cpp | |
| parent | 4d4f25d1774659e0dfae8e60e13c494cab0f0a44 (diff) | |
added GeometrySaver
removed widget-specific functions in GeometrySettings, now using generic functions in Settings
removed some unused member variables in MainWindow
Diffstat (limited to 'src/profilesdialog.cpp')
| -rw-r--r-- | src/profilesdialog.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/profilesdialog.cpp b/src/profilesdialog.cpp index 25fff2b2..2f1bd059 100644 --- a/src/profilesdialog.cpp +++ b/src/profilesdialog.cpp @@ -86,17 +86,8 @@ ProfilesDialog::~ProfilesDialog() 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;
+ GeometrySaver gs(Settings::instance(), this);
+ return QDialog::exec();
}
void ProfilesDialog::showEvent(QShowEvent *event)
|
