diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-02-15 12:24:14 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-17 10:50:51 -0800 |
commit | 24543a0099017cea66527d19700b0a6b4857d9e0 (patch) | |
tree | 41fca81480273cfae48ac9160e4bf5e9081e4431 /core/uploadDiveLogsDE.cpp | |
parent | 9e369688811563c77b5152a41c0ddc615abf9b74 (diff) | |
download | subsurface-24543a0099017cea66527d19700b0a6b4857d9e0.tar.gz |
core: fix incorrect changes in divelogs.de export
This is complete nonsense and should never have been merged.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/uploadDiveLogsDE.cpp')
-rw-r--r-- | core/uploadDiveLogsDE.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/uploadDiveLogsDE.cpp b/core/uploadDiveLogsDE.cpp index 219e13f45..5b5bd8e91 100644 --- a/core/uploadDiveLogsDE.cpp +++ b/core/uploadDiveLogsDE.cpp @@ -64,12 +64,6 @@ void uploadDiveLogsDE::doUpload(bool selected, const QString &userid, const QStr bool uploadDiveLogsDE::prepareDives(const QString &tempfile, bool selected) { static const char errPrefix[] = "divelog.de-upload:"; -#ifndef SUBSURFACE_MOBILE - if (!amount_selected) { - report_error(tr("No dives were selected").toUtf8()); - return false; - } -#endif // SUBSURFACE_MOBILE xsltStylesheetPtr xslt = NULL; struct zip *zip; @@ -265,7 +259,7 @@ void uploadDiveLogsDE::updateProgressSlot(qint64 current, qint64 total) { if (!reply) return; - + if (total <= 0 || current <= 0) return; |