summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/uploadDiveShare.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/uploadDiveShare.cpp b/core/uploadDiveShare.cpp
index 3d75abf9a..8d5858e00 100644
--- a/core/uploadDiveShare.cpp
+++ b/core/uploadDiveShare.cpp
@@ -76,12 +76,13 @@ void uploadDiveShare::updateProgressSlot(qint64 current, qint64 total)
void uploadDiveShare::uploadFinishedSlot()
{
+ QByteArray html = reply->readAll();
reply->deleteLater();
timeout.stop();
if (reply->error() != 0) {
- emit uploadFinish(false, reply->errorString(), reply->readAll());
+ emit uploadFinish(false, reply->errorString(), html);
} else {
- emit uploadFinish(true, tr("Upload successful"), reply->readAll());
+ emit uploadFinish(true, tr("Upload successful"), html);
}
}