diff options
| author | Peter Penz <[email protected]> | 2007-11-01 22:09:48 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-11-01 22:09:48 +0000 |
| commit | 42439cd482987f17a0202c57beb9622bba1f8490 (patch) | |
| tree | 651999906417afd31d66240f835c14df600a9b97 /src | |
| parent | d4e536b45f81c0fb0aeba475eb45d49e9f0c14a5 (diff) | |
fixed issue that the "Ask for confirmation when moving files or folders to trash"-setting is ignored
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=731813
Diffstat (limited to 'src')
| -rw-r--r-- | src/generalsettingspage.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/generalsettingspage.cpp b/src/generalsettingspage.cpp index 5584350b3..f856de1b1 100644 --- a/src/generalsettingspage.cpp +++ b/src/generalsettingspage.cpp @@ -137,7 +137,8 @@ void GeneralSettingsPage::applySettings() settings->setEditableUrl(m_editableUrl->isChecked()); settings->setFilterBar(m_filterBar->isChecked()); - KConfigGroup trashConfig(KGlobal::config(), "Trash"); + 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(); @@ -185,7 +186,8 @@ void GeneralSettingsPage::loadSettings() m_editableUrl->setChecked(settings->editableUrl()); m_filterBar->setChecked(settings->filterBar()); - const KConfigGroup trashConfig(KGlobal::config(), "Trash"); + 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)); |
