mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
2d7be7a0e3
commit
f3a2ee8082
2 changed files with 18 additions and 24 deletions
|
@ -16,7 +16,6 @@ class PreferencesDialog : public QDialog {
|
|||
public:
|
||||
static PreferencesDialog* instance();
|
||||
~PreferencesDialog();
|
||||
void addPreferencePage(AbstractPreferencesWidget *page);
|
||||
void refreshPages();
|
||||
void defaultsRequested();
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue