┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-02-25 22:42:47 +0000
committerPeter Penz <[email protected]>2007-02-25 22:42:47 +0000
commit6c4e3aee2a65969d25813d9809bffca23fbe18d3 (patch)
treeb93181fd381efbf9a812c9d0cfeeb201ed0b8fc8 /src/dolphincontextmenu.cpp
parentd9c3648d5a4601d8e11e148ca77b3e9d84cf3207 (diff)
As Aaron suggested: use the global setting for "Show Delete command" instead of using a custom Dolphin setting. I hope I used the reworked KConfig classes in a correct manner (setGroup() has been marked as deprecated, Konqueror still uses those deprecated methods).
svn path=/trunk/KDE/kdebase/apps/; revision=637272
Diffstat (limited to 'src/dolphincontextmenu.cpp')
-rw-r--r--src/dolphincontextmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp
index 14f71f449..346ee6401 100644
--- a/src/dolphincontextmenu.cpp
+++ b/src/dolphincontextmenu.cpp
@@ -25,8 +25,6 @@
#include "dolphinview.h"
#include "editbookmarkdialog.h"
-#include "dolphin_generalsettings.h"
-
#include <assert.h>
#include <kactioncollection.h>
@@ -154,7 +152,9 @@ void DolphinContextMenu::openItemContextMenu()
popup->addAction(renameAction);
// insert 'Move to Trash' and (optionally) 'Delete'
- bool showDeleteCommand = DolphinSettings::instance().generalSettings()->showDeleteCommand();
+ const KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals);
+ const KConfigGroup kdeConfig(globalConfig, "KDE");
+ bool showDeleteCommand = kdeConfig.readEntry("ShowDeleteCommand", false);
const KUrl& url = dolphin->activeView()->url();
if (url.isLocalFile()) {
QAction* moveToTrashAction = dolphin->actionCollection()->action("move_to_trash");