X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d9c3648d5a4601d8e11e148ca77b3e9d84cf3207..b5cc2a6924cfd8f59611d3cec2edbb00a08b4ff1:/src/generalsettingspage.cpp diff --git a/src/generalsettingspage.cpp b/src/generalsettingspage.cpp index ba5473054..8d1389b59 100644 --- a/src/generalsettingspage.cpp +++ b/src/generalsettingspage.cpp @@ -95,8 +95,9 @@ GeneralSettingsPage::GeneralSettingsPage(DolphinMainWindow* mainWin,QWidget* par startBoxLayout->addWidget(m_startEditable); m_showDeleteCommand = new QCheckBox(i18n("Show the command 'Delete' in context menu"), vBox); - // TODO: use global config like in Konqueror or is this a custom setting for Dolphin? - m_showDeleteCommand->setChecked(settings->showDeleteCommand()); + const KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals); + const KConfigGroup kdeConfig(globalConfig, "KDE"); + m_showDeleteCommand->setChecked(kdeConfig.readEntry("ShowDeleteCommand", false)); // Add a dummy widget with no restriction regarding // a vertical resizing. This assures that the dialog layout @@ -123,7 +124,11 @@ void GeneralSettingsPage::applySettings() settings->setSplitView(m_startSplit->isChecked()); settings->setEditableUrl(m_startEditable->isChecked()); - settings->setShowDeleteCommand(m_showDeleteCommand->isChecked()); + + KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals); + KConfigGroup kdeConfig(globalConfig, "KDE"); + kdeConfig.writeEntry("ShowDeleteCommand", m_showDeleteCommand->isChecked()); + kdeConfig.sync(); } void GeneralSettingsPage::selectHomeUrl()