]> cloud.milkyroute.net Git - dolphin.git/commitdiff
porting
authorStephan Kulow <coolo@kde.org>
Tue, 20 Feb 2007 09:04:52 +0000 (09:04 +0000)
committerStephan Kulow <coolo@kde.org>
Tue, 20 Feb 2007 09:04:52 +0000 (09:04 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=635532

src/dolphincontextmenu.cpp
src/infosidebarpage.cpp

index 087211686e8c4e7e1db97bbcdc4142164ef25be6..d27aa99cd23f0d0df4510f683af73fa58326c28c 100644 (file)
@@ -317,8 +317,7 @@ QList<QAction*> DolphinContextMenu::insertActionItems(KMenu* popup,
         QStringList entries = dir.entryList(QDir::Files);
 
         for (QStringList::ConstIterator entryIt = entries.begin(); entryIt != entries.end(); ++entryIt) {
-            KConfig cfg(*dirIt + *entryIt, KConfig::OnlyLocal);
-            cfg.setDesktopGroup();
+            KConfigGroup cfg(KSharedConfig::openConfig( *dirIt + *entryIt, KConfig::OnlyLocal), "Desktop Entry" );
             if ((cfg.hasKey("Actions") || cfg.hasKey("X-KDE-GetActionMenu")) && cfg.hasKey("ServiceTypes")) {
                 //const QStringList types = cfg.readListEntry("ServiceTypes");
                 QStringList types;
index ea8281918013d62e27d752e6df4bafa126a25f67..2336e1dd420ae5eb144b83faf09d968c431e652f 100644 (file)
@@ -452,8 +452,7 @@ void InfoSidebarPage::insertActions()
         QStringList entries = dir.entryList(QStringList("*.desktop"), QDir::Files);
 
         for (QStringList::ConstIterator entryIt = entries.begin(); entryIt != entries.end(); ++entryIt) {
-            KConfig cfg(*dirIt + *entryIt, KConfig::OnlyLocal);
-            cfg.setDesktopGroup();
+            KConfigGroup cfg(KSharedConfig::openConfig( *dirIt + *entryIt, KConfig::OnlyLocal ), "Desktop Entry" );
             if ((cfg.hasKey("Actions") || cfg.hasKey("X-KDE-GetActionMenu")) && cfg.hasKey("ServiceTypes")) {
                 const QStringList types = cfg.readEntry("ServiceTypes", QStringList(), ',');
                 for (QStringList::ConstIterator it = types.begin(); it != types.end(); ++it) {