X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/de077f8477c0b7077ed9239be8741fcb67658ffa..c8d8556950005dfd96ebdb41d2f43ad90356367c:/src/settings/dolphinsettingsdialog.cpp diff --git a/src/settings/dolphinsettingsdialog.cpp b/src/settings/dolphinsettingsdialog.cpp index b1988ddc1..609e2ab92 100644 --- a/src/settings/dolphinsettingsdialog.cpp +++ b/src/settings/dolphinsettingsdialog.cpp @@ -22,7 +22,6 @@ #include #include -#include "dolphinsettings.h" #include "dolphin_generalsettings.h" #include "general/generalsettingspage.h" #include "navigation/navigationsettingspage.h" @@ -130,17 +129,17 @@ void DolphinSettingsDialog::applySettings() page->applySettings(); } - GeneralSettings* settings = DolphinSettings::instance().generalSettings(); + emit settingsChanged(); + + GeneralSettings* settings = GeneralSettings::self(); if (settings->modifiedStartupSettings()) { // Reset the modified startup settings hint. The changed startup settings - // have been applied already in app()->refreshMainWindows(). + // have been applied already due to emitting settingsChanged(). settings->setModifiedStartupSettings(false); settings->writeConfig(); } enableButtonApply(false); - - emit settingsChanged(); } void DolphinSettingsDialog::restoreDefaults()