Implemented SettingsDatabase::remove

At the same time, fixed the order in the QuickOpen plugin to make sure
the RefreshInterval setting isn't immediately removed after saving it.

Also disabled debug output for settings database.
This commit is contained in:
Thorbjørn Lindeijer
2009-05-20 17:15:59 +02:00
parent 93e61533aa
commit 281cea13a0
2 changed files with 22 additions and 5 deletions

View File

@@ -206,8 +206,8 @@ void QuickOpenPlugin::saveSettings()
if (core && core->settingsDatabase()) {
Core::SettingsDatabase *s = core->settingsDatabase();
s->beginGroup("QuickOpen");
s->setValue("RefreshInterval", refreshInterval());
s->remove("");
s->setValue("RefreshInterval", refreshInterval());
foreach (IQuickOpenFilter *filter, m_filters) {
if (!m_customFilters.contains(filter))
s->setValue(filter->name(), filter->saveState());