Commit 2ac4d913 authored by Lukas Appelhans's avatar Lukas Appelhans

Emit correct signal and create an unknownerror when op->errors() is empty......

Emit correct signal and create an unknownerror when op->errors() is empty... b/c an error actually occured, but was not specified...
parent 1aaafdf9
......@@ -59,7 +59,7 @@ void OperationRunnerPrivate::emitProgress(Operation *op, int progress)
void OperationRunnerPrivate::emitFinished(Operation *op, bool result)
{
Q_Q(OperationRunner);
emit q->operationProgress(op, result);
emit q->operationFinished(op);
}
void OperationRunnerPrivate::emitMessage(Akabei::Operation* op, const QString &message)
......
......@@ -189,6 +189,8 @@ QList< Error* > RunnerRunnable::runSequential(const QList< Operation* >& ops)
bool success = runSingle(op);
emit operationFinished(op);
if (!success) {
if (op->errors().isEmpty())
return QList<Error*>() << new Error(Error::UnknownError, QObject::tr("An error occurred, but no further information was given."), op);
return op->errors();
}
}
......
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