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.
This commit is contained in:
parent
7fb579610a
commit
c76b5137e2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user