diff options
| author | Peter Penz <[email protected]> | 2008-07-19 19:53:25 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-07-19 19:53:25 +0000 |
| commit | a3b4d94f6ee6ff3885cf197f7308bc070744964a (patch) | |
| tree | a48055b183029841d70b3d2fa0ffef854ade6a13 /src | |
| parent | 448c080fbd8999e06e61f38bcae4ecbfd7d2c306 (diff) | |
fixed issue that Dolphin uses the wrong settings for the move-to-trash and delete-confirmation
BUG: 166717
svn path=/trunk/KDE/kdebase/apps/; revision=834990
Diffstat (limited to 'src')
| -rw-r--r-- | src/generalsettingspage.cpp | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/generalsettingspage.cpp b/src/generalsettingspage.cpp index 4a8230bb7..c4b479f66 100644 --- a/src/generalsettingspage.cpp +++ b/src/generalsettingspage.cpp @@ -100,15 +100,16 @@ void GeneralSettingsPage::applySettings() { GeneralSettings* settings = DolphinSettings::instance().generalSettings(); - KSharedConfig::Ptr konqConfig = KSharedConfig::openConfig("konquerorrc", KConfig::IncludeGlobals); - KConfigGroup trashConfig(konqConfig, "Trash"); - trashConfig.writeEntry("ConfirmTrash", m_confirmMoveToTrash->isChecked()); - trashConfig.writeEntry("ConfirmDelete", m_confirmDelete->isChecked()); - trashConfig.sync(); + KSharedConfig::Ptr kioConfig = KSharedConfig::openConfig("kiorc", KConfig::NoGlobals); + KConfigGroup confirmationGroup(kioConfig, "Confirmations"); + confirmationGroup.writeEntry("ConfirmTrash", m_confirmMoveToTrash->isChecked()); + confirmationGroup.writeEntry("ConfirmDelete", m_confirmDelete->isChecked()); + confirmationGroup.sync(); - KConfigGroup kdeConfig(KGlobal::config(), "KDE"); - kdeConfig.writeEntry("ShowDeleteCommand", m_showDeleteCommand->isChecked()); - kdeConfig.sync(); + KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals); + KConfigGroup globalGroup(globalConfig, "KDE"); + globalGroup.writeEntry("ShowDeleteCommand", m_showDeleteCommand->isChecked()); + globalGroup.sync(); settings->setShowCopyMoveMenu(m_showCopyMoveMenu->isChecked()); settings->setBrowseThroughArchives(m_browseThroughArchives->isChecked()); @@ -127,13 +128,14 @@ void GeneralSettingsPage::restoreDefaults() void GeneralSettingsPage::loadSettings() { - KSharedConfig::Ptr konqConfig = KSharedConfig::openConfig("konquerorrc", KConfig::IncludeGlobals); - const KConfigGroup trashConfig(konqConfig, "Trash"); - m_confirmMoveToTrash->setChecked(trashConfig.readEntry("ConfirmTrash", false)); - m_confirmDelete->setChecked(trashConfig.readEntry("ConfirmDelete", true)); + KSharedConfig::Ptr kioConfig = KSharedConfig::openConfig("kiorc", KConfig::IncludeGlobals); + const KConfigGroup confirmationGroup(kioConfig, "Confirmations"); + m_confirmMoveToTrash->setChecked(confirmationGroup.readEntry("ConfirmTrash", false)); + m_confirmDelete->setChecked(confirmationGroup.readEntry("ConfirmDelete", true)); - const KConfigGroup kdeConfig(KGlobal::config(), "KDE"); - m_showDeleteCommand->setChecked(kdeConfig.readEntry("ShowDeleteCommand", false)); + KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals); + KConfigGroup globalGroup(globalConfig, "KDE"); + m_showDeleteCommand->setChecked(globalGroup.readEntry("ShowDeleteCommand", false)); GeneralSettings* settings = DolphinSettings::instance().generalSettings(); m_showCopyMoveMenu->setChecked(settings->showCopyMoveMenu()); |
