diff --git a/host/downloadjob.cpp b/host/downloadjob.cpp --- a/host/downloadjob.cpp +++ b/host/downloadjob.cpp @@ -98,7 +98,11 @@ it = payload.constFind(QStringLiteral("filename")); if (it != end) { - m_destination = QUrl::fromLocalFile(it->toString()); + const QUrl destination = QUrl::fromLocalFile(it->toString()); + + setProperty("destUrl", destination.toString(QUrl::RemoveFilename | QUrl::StripTrailingSlash)); + + m_destination = destination; descriptionDirty = true; } @@ -112,6 +116,8 @@ setProcessedAmount(Bytes, it->toDouble()); } + setTotalAmount(Files, 1); + it = payload.constFind(QStringLiteral("paused")); if (it != end) { const bool paused = it->toBool();