From c76b5137e2462cdc3593218634a1f4cd1dc43e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 14 Aug 2013 03:29:46 +0200 Subject: [PATCH] Fix empty group operations There appears to be a subtle change in KConfig*, which means that if a config group is empty, it won't be listed in groupsMap. Since operations files can have empty groups, which are simply calls without arguments, these would not be listed, and thus not be callable at all. Fix: Add a dummy item per group, not beautiful, but effectively makes it work. --- src/plasma/configloader.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plasma/configloader.cpp b/src/plasma/configloader.cpp index 17206b391..91d60a619 100644 --- a/src/plasma/configloader.cpp +++ b/src/plasma/configloader.cpp @@ -162,6 +162,13 @@ bool ConfigLoaderHandler::endElement(const QString &namespaceURI, // qDebug() << "ConfigLoaderHandler::endElement(" << localName << qName; const QString tag = localName.toLower(); + if (tag == "group") { + m_name = "__operationName"; + m_type = "string"; + //m_default = currentGroup(); + addItem(); + resetState(); + } if (tag == "entry") { addItem(); resetState();