X-KDE-ParentApp can also be empty, not just not there
svn path=/branches/KDE/4.4/kdelibs/; revision=1094364
This commit is contained in:
parent
e5c3431ae1
commit
3f377bd938
@ -1101,7 +1101,7 @@ KPluginInfo::List Containment::listContainmentsOfType(const QString &type,
|
|||||||
QString constraint;
|
QString constraint;
|
||||||
|
|
||||||
if (parentApp.isEmpty()) {
|
if (parentApp.isEmpty()) {
|
||||||
constraint.append("not exist [X-KDE-ParentApp]");
|
constraint.append("(not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '')");
|
||||||
} else {
|
} else {
|
||||||
constraint.append("[X-KDE-ParentApp] == '").append(parentApp).append("'");
|
constraint.append("[X-KDE-ParentApp] == '").append(parentApp).append("'");
|
||||||
}
|
}
|
||||||
|
@ -174,7 +174,7 @@ QStringList DataEngineManager::listAllEngines(const QString &parentApp)
|
|||||||
QString constraint;
|
QString constraint;
|
||||||
|
|
||||||
if (parentApp.isEmpty()) {
|
if (parentApp.isEmpty()) {
|
||||||
constraint.append("not exist [X-KDE-ParentApp]");
|
constraint.append("(not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '')");
|
||||||
} else {
|
} else {
|
||||||
constraint.append("[X-KDE-ParentApp] == '").append(parentApp).append("'");
|
constraint.append("[X-KDE-ParentApp] == '").append(parentApp).append("'");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user