Commit e90a75d9 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Notifications] Forward V2 call to V3

Reduces some code duplication
parent 68f16bae
......@@ -255,9 +255,9 @@ void JobPrivate::finish()
void JobPrivate::terminate(const QString &errorMessage)
{
Job *job = static_cast<Job *>(parent());
job->setErrorText(errorMessage);
job->setState(Notifications::JobStateStopped);
finish();
// forward to JobViewV3. In V2 we get a setError before a terminate
// so we want to forward the current error to the V3 call.
terminate(job->error(), errorMessage, {});
}
void JobPrivate::setSuspended(bool suspended)
......
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