From 3ebd1027a23502a30a821d27b1f9946dcd595543 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 20 Feb 2007 09:04:52 +0000 Subject: porting svn path=/trunk/KDE/kdebase/apps/; revision=635532 --- src/dolphincontextmenu.cpp | 3 +-- src/infosidebarpage.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 087211686..d27aa99cd 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -317,8 +317,7 @@ QList 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; diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index ea8281918..2336e1dd4 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -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) { -- cgit v1.3