don't bother the service plugin if the operation doesn't exist; no different in practice, but moves error handling more central
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867109
This commit is contained in:
parent
5c45bf09e8
commit
162fc57e8a
@ -139,7 +139,7 @@ ServiceJob* Service::startOperationCall(const KConfigGroup &description, QObject
|
||||
QString op = description.name();
|
||||
if (!d->config) {
|
||||
kDebug() << "No valid operations scheme has been registered";
|
||||
} else {
|
||||
} else if (d->config->hasGroup(op)) {
|
||||
if (d->disabledOperations.contains(op)) {
|
||||
kDebug() << "Operation" << op << "is disabled";
|
||||
} else {
|
||||
@ -153,6 +153,8 @@ ServiceJob* Service::startOperationCall(const KConfigGroup &description, QObject
|
||||
|
||||
job = createJob(description.name(), params);
|
||||
}
|
||||
} else {
|
||||
kDebug() << "Not a valid group!";
|
||||
}
|
||||
|
||||
if (!job) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user