diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-10 15:45:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-11 11:08:51 -0500 |
commit | fc740f63697f332d88c9f8a2be74e53e582f096b (patch) | |
tree | b280012df3d2c000892c91c3d49c723da3e1e552 /core/uploadDiveShare.cpp | |
parent | e5f3e927a703e6dbd235ebc9500c413295bd0d78 (diff) | |
download | subsurface-fc740f63697f332d88c9f8a2be74e53e582f096b.tar.gz |
core: change uploadFinish() to include html
diveshareexport wants to show the HTML received
in a positive response, so signal cannot be
compatible with diveLogsDE
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'core/uploadDiveShare.cpp')
-rw-r--r-- | core/uploadDiveShare.cpp | 8 |
1 files changed, 4 insertions, 4 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()); } |