mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Settings update: Move loadPreferences out of qt-helper.cpp
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8f178301d8
commit
9b2404fcb4
5 changed files with 165 additions and 169 deletions
|
@ -31,8 +31,6 @@ void PreferencesDialog::emitSettingsChanged()
|
|||
|
||||
PreferencesDialog::PreferencesDialog()
|
||||
{
|
||||
loadPreferences(); //TODO: Move this code out of the qthelper.cpp
|
||||
|
||||
//FIXME: This looks wrong.
|
||||
//QSettings s;
|
||||
//s.beginGroup("GeneralSettings");
|
||||
|
@ -124,7 +122,6 @@ void PreferencesDialog::applyRequested(bool closeIt)
|
|||
connect(page, &AbstractPreferencesWidget::settingsChanged, this, &PreferencesDialog::settingsChanged, Qt::UniqueConnection);
|
||||
page->syncSettings();
|
||||
}
|
||||
loadPreferences(); //TODO: Move loadPreferences out of qthelper.cpp
|
||||
emit settingsChanged();
|
||||
if (closeIt)
|
||||
accept();
|
||||
|
@ -144,7 +141,6 @@ void PreferencesDialog::defaultsRequested()
|
|||
Q_FOREACH(AbstractPreferencesWidget *page, pages) {
|
||||
page->refreshSettings();
|
||||
}
|
||||
loadPreferences(); //TODO: Move loadPreferences out of qthelper.cpp
|
||||
emit settingsChanged();
|
||||
accept();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue