diff options
| author | Peter Penz <[email protected]> | 2008-08-07 21:44:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-08-07 21:44:35 +0000 |
| commit | 17dca27e615fa63ac6b8d7bf3aabfdbd9d71e0f5 (patch) | |
| tree | 9953f2aaf6a845a8ce24d1cd94f7e96dedf2beac /src/treeviewcontextmenu.cpp | |
| parent | 98bd28a8367469fa94aa6a1dc77f4583cfd5a116 (diff) | |
use the global setting for the "Show Delete" command
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=843787
Diffstat (limited to 'src/treeviewcontextmenu.cpp')
| -rw-r--r-- | src/treeviewcontextmenu.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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"), |
