Commit 3236670a authored by Slava Monich's avatar Slava Monich

[transfer-engine] Finish activity prior to firing the statusChanged event

The statusChanged() event is wired to TransferEnginePrivate::exitSafely()
which would otherwise think that something is still going on and wouldn't
exit, so transfer engine would keep on running forever. Which is what it
currently does.
parent 3360a7b5
......@@ -1153,6 +1153,7 @@ void TransferEngine::finishTransfer(int transferId, int status, const QString &r
transferStatus == TransferEngineData::TransferInterrupted) {
DbManager::instance()->updateTransferStatus(transferId, transferStatus);
d->sendNotification(type, transferStatus, fileName);
d->m_activityMonitor->activityFinished(transferId);
emit statusChanged(transferId, status);
bool notify = false;
......@@ -1174,8 +1175,6 @@ void TransferEngine::finishTransfer(int transferId, int status, const QString &r
if (notify) {
emit transfersChanged();
}
d->m_activityMonitor->activityFinished(transferId);
}
}
......
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