┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-08-07 21:44:35 +0000
committerPeter Penz <[email protected]>2008-08-07 21:44:35 +0000
commit17dca27e615fa63ac6b8d7bf3aabfdbd9d71e0f5 (patch)
tree9953f2aaf6a845a8ce24d1cd94f7e96dedf2beac /src/dolphinpart.cpp
parent98bd28a8367469fa94aa6a1dc77f4583cfd5a116 (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/dolphinpart.cpp')
-rw-r--r--src/dolphinpart.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp
index 1cdf73f3e..45fc99115 100644
--- a/src/dolphinpart.cpp
+++ b/src/dolphinpart.cpp
@@ -367,8 +367,9 @@ void DolphinPart::slotOpenContextMenu(const KFileItem& _item, const KUrl&)
addDel = true;
}
else {
- KConfigGroup configGroup( KGlobal::config(), "KDE" );
- if ( configGroup.readEntry( "ShowDeleteCommand", false) )
+ KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::IncludeGlobals);
+ KConfigGroup configGroup(globalConfig, "KDE");
+ if ( configGroup.readEntry("ShowDeleteCommand", false) )
addDel = true;
}
}