diff options
| author | Shaun Reich <[email protected]> | 2009-02-01 20:43:26 +0000 |
|---|---|---|
| committer | Shaun Reich <[email protected]> | 2009-02-01 20:43:26 +0000 |
| commit | 9f7c2424d9c6df1a8461e24a8865552629fcda1a (patch) | |
| tree | e964b5fc336167075545b8025d8c6445a0bfdca4 /src/settings/navigationsettingspage.cpp | |
| parent | 3df531dcf66530f911e22d3ab5d479c5bf065811 (diff) | |
Now when you click the button "Defaults" in the settings dialog, it will push the settings to the UI, then the user can apply, cancel, or modify them from there. Also removed the message box prompt. Use settings->useDefaults(true), then set it back to false after you are done loading settings in the restoreDefaults() method calls. Don't use ->setDefaults() normally, anymore.
svn path=/trunk/KDE/kdebase/apps/; revision=919897
Diffstat (limited to 'src/settings/navigationsettingspage.cpp')
| -rw-r--r-- | src/settings/navigationsettingspage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/settings/navigationsettingspage.cpp b/src/settings/navigationsettingspage.cpp index 81ca7e83a..b2e0820b9 100644 --- a/src/settings/navigationsettingspage.cpp +++ b/src/settings/navigationsettingspage.cpp @@ -94,8 +94,9 @@ void NavigationSettingsPage::applySettings() void NavigationSettingsPage::restoreDefaults() { GeneralSettings* settings = DolphinSettings::instance().generalSettings(); - settings->setDefaults(); + settings->useDefaults(true); loadSettings(); + settings->useDefaults(false); } void NavigationSettingsPage::loadSettings() |
