1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00
svn path=/trunk/KDE/kdebase/apps/; revision=635532
This commit is contained in:
Stephan Kulow 2007-02-20 09:04:52 +00:00
parent 1bed1753d2
commit 3ebd1027a2
2 changed files with 2 additions and 4 deletions

View 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;

View 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) {