X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/a23a882c68fb399f895ebed253cf2ad09944a347..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/generalsettingspage.cpp 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));