From 17dca27e615fa63ac6b8d7bf3aabfdbd9d71e0f5 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 7 Aug 2008 21:44:35 +0000 Subject: use the global setting for the "Show Delete" command CCMAIL: kde@randomguy3.me.uk svn path=/trunk/KDE/kdebase/apps/; revision=843787 --- src/treeviewcontextmenu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/treeviewcontextmenu.cpp') diff --git a/src/treeviewcontextmenu.cpp b/src/treeviewcontextmenu.cpp index 60fe3c983..20840060e 100644 --- a/src/treeviewcontextmenu.cpp +++ b/src/treeviewcontextmenu.cpp @@ -82,8 +82,10 @@ void TreeViewContextMenu::open() popup->addAction(renameAction); // insert 'Move to Trash' and (optionally) 'Delete' - KConfigGroup kdeConfig(KGlobal::config(), "KDE"); - bool showDeleteCommand = kdeConfig.readEntry("ShowDeleteCommand", false); + KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::IncludeGlobals); + KConfigGroup configGroup(globalConfig, "KDE"); + bool showDeleteCommand = configGroup.readEntry("ShowDeleteCommand", false); + const KUrl& url = m_fileInfo.url(); if (url.isLocalFile()) { QAction* moveToTrashAction = new QAction(KIcon("user-trash"), -- cgit v1.3