aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferencesdialog.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-11-24 14:10:53 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-12 15:52:40 -0800
commit712e4680cae91ca3ca7291bc7f5124d5a3578a4d (patch)
tree4cd87796f3532e8ab2028da4386496af21d1eb89 /desktop-widgets/preferences/preferencesdialog.h
parent0fab09a9901314f5597b16da370d3712ce28c4ae (diff)
downloadsubsurface-712e4680cae91ca3ca7291bc7f5124d5a3578a4d.tar.gz
preferences: connect() dialog page only once
Weirdly, the settingsChanged() signal of the dialog-pages was connected() to the settingsChanged() signal of the dialog every time the settings were accepted. Do it only once in the constructor. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/preferences/preferencesdialog.h')
-rw-r--r--desktop-widgets/preferences/preferencesdialog.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.h b/desktop-widgets/preferences/preferencesdialog.h
index d05487b98..4eb222006 100644
--- a/desktop-widgets/preferences/preferencesdialog.h
+++ b/desktop-widgets/preferences/preferencesdialog.h
@@ -3,7 +3,6 @@
#define PREFERENCES_WIDGET_H
#include <QDialog>
-#include "core/pref.h"
class AbstractPreferencesWidget;
class QListWidget;
@@ -14,7 +13,7 @@ class QAbstractButton;
class PreferencesDialog : public QDialog {
Q_OBJECT
public:
- static PreferencesDialog* instance();
+ static PreferencesDialog *instance();
~PreferencesDialog();
void refreshPages();
void defaultsRequested();