summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/uploadDiveShare.cpp8
-rw-r--r--core/uploadDiveShare.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/core/uploadDiveShare.cpp b/core/uploadDiveShare.cpp
index 0ad8b520b..cc5b90ca6 100644
--- a/core/uploadDiveShare.cpp
+++ b/core/uploadDiveShare.cpp
@@ -79,9 +79,9 @@ void uploadDiveShare::slot_uploadFinished()
reply->deleteLater();
timeout.stop();
if (reply->error() != 0) {
- emit uploadFinish(false, reply->errorString());
+ emit uploadFinish(false, reply->errorString(), reply->readAll());
} else {
- emit uploadFinish(true, tr("Upload successful"));
+ emit uploadFinish(true, tr("Upload successful"), reply->readAll());
}
}
@@ -95,7 +95,7 @@ void uploadDiveShare::slot_uploadTimeout()
}
QString err(tr("dive-share.com not responding"));
report_error(err.toUtf8());
- emit uploadFinish(false, err);
+ emit uploadFinish(false, err, QByteArray());
}
@@ -108,5 +108,5 @@ void uploadDiveShare::slot_uploadError(QNetworkReply::NetworkError error)
}
QString err(tr("network error %1").arg(error));
report_error(err.toUtf8());
- emit uploadFinish(false, err);
+ emit uploadFinish(false, err, QByteArray());
}
diff --git a/core/uploadDiveShare.h b/core/uploadDiveShare.h
index 6aca214a5..88ac2c519 100644
--- a/core/uploadDiveShare.h
+++ b/core/uploadDiveShare.h
@@ -19,7 +19,7 @@ private slots:
void slot_uploadError(QNetworkReply::NetworkError error);
signals:
- void uploadFinish(bool success, const QString &text);
+ void uploadFinish(bool success, const QString &text, const QByteArray &html);
void uploadProgress(qreal percentage, qreal total);
void uploadStatus(const QString &text);