Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[transfer-engine] Finish activity prior to firing the statusChanged e…
…vent

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.
  • Loading branch information
monich committed Sep 29, 2014
1 parent 3360a7b commit 3236670
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/transferengine.cpp
Expand Up @@ -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;
Expand All @@ -1174,8 +1175,6 @@ void TransferEngine::finishTransfer(int transferId, int status, const QString &r
if (notify) {
emit transfersChanged();
}

d->m_activityMonitor->activityFinished(transferId);
}
}

Expand Down

0 comments on commit 3236670

Please sign in to comment.