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/behaviorsettingspage.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/behaviorsettingspage.cpp')
| -rw-r--r-- | src/settings/behaviorsettingspage.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/settings/behaviorsettingspage.cpp b/src/settings/behaviorsettingspage.cpp index a5bcc63c7..329ec586c 100644 --- a/src/settings/behaviorsettingspage.cpp +++ b/src/settings/behaviorsettingspage.cpp @@ -133,11 +133,10 @@ void BehaviorSettingsPage::applySettings() void BehaviorSettingsPage::restoreDefaults() { GeneralSettings* settings = DolphinSettings::instance().generalSettings(); - settings->setDefaults(); - - // TODO: reset default settings for trash and show delete command... - + //TODO: Reset default settings for both trash and show delete commands (confirmations). + settings->useDefaults(true); loadSettings(); + settings->useDefaults(false); } void BehaviorSettingsPage::loadSettings() |
