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/categoriesdialog.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/categoriesdialog.cpp')
| -rw-r--r-- | src/categoriesdialog.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/categoriesdialog.cpp b/src/categoriesdialog.cpp index 91df5cae..b5194bf0 100644 --- a/src/categoriesdialog.cpp +++ b/src/categoriesdialog.cpp @@ -112,17 +112,8 @@ CategoriesDialog::~CategoriesDialog() int CategoriesDialog::exec()
{
- auto& settings = Settings::instance();
-
- if (auto v=settings.geometry().getCategoriesDialog()) {
- restoreGeometry(*v);
- }
-
- const int r = QDialog::exec();
-
- settings.geometry().setCategoriesDialog(saveGeometry());
-
- return r;
+ GeometrySaver gs(Settings::instance(), this);
+ return QDialog::exec();
}
|
