summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferencesdialog.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-11-24 12:55:59 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-12 15:52:40 -0800
commitf3a2ee8082fd5b9e54564b77ac49efdf9444e802 (patch)
tree02fe8ca95fed6af53019f0a9451fb2cf9ab3e613 /desktop-widgets/preferences/preferencesdialog.h
parent2d7be7a0e366b562fdff914e92219ab1852cd3c8 (diff)
downloadsubsurface-f3a2ee8082fd5b9e54564b77ac49efdf9444e802.tar.gz
preferences: sort pages only once
After each addition of a page in the constructor, the list was resorted. This appears pointless. Instead, sort the list only after all pages were added. Since the add-page function is now a single line, remove it. 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.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.h b/desktop-widgets/preferences/preferencesdialog.h
index 8abf812e9..d05487b98 100644
--- a/desktop-widgets/preferences/preferencesdialog.h
+++ b/desktop-widgets/preferences/preferencesdialog.h
@@ -16,7 +16,6 @@ class PreferencesDialog : public QDialog {
public:
static PreferencesDialog* instance();
~PreferencesDialog();
- void addPreferencePage(AbstractPreferencesWidget *page);
void refreshPages();
void defaultsRequested();
private: