]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinpart.cpp
use the global setting for the "Show Delete" command
[dolphin.git] / src / dolphinpart.cpp
index 1cdf73f3e2dc5d80265e78f23f267e748abd82dd..45fc9911593e93de654f8ab51558bd396818cb83 100644 (file)
@@ -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;
             }
         }