Commit a30e39cd authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Revert it. It can't be empty if agentType is invalid

parent e64ce444
Pipeline #28459 passed with stage
in 37 minutes and 47 seconds
......@@ -152,13 +152,6 @@ void AgentInstanceCreateJobPrivate::doStart()
agentType = AgentManager::self()->type(agentTypeId);
}
if (!agentTypeId.isEmpty()) {
q->setError(KJob::UserDefinedError);
q->setErrorText(i18n("Agent Type undefined."));
QTimer::singleShot(0, q, &AgentInstanceCreateJob::emitResult);
return;
}
if (!agentType.isValid()) {
q->setError(KJob::UserDefinedError);
q->setErrorText(i18n("Unable to obtain agent type '%1'.", agentTypeId));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment