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>
This commit is contained in:
Dirk Hohndel 2020-02-15 12:24:14 -08:00
parent 9e36968881
commit 24543a0099

View file

@ -64,12 +64,6 @@ void uploadDiveLogsDE::doUpload(bool selected, const QString &userid, const QStr
bool uploadDiveLogsDE::prepareDives(const QString &tempfile, bool selected) bool uploadDiveLogsDE::prepareDives(const QString &tempfile, bool selected)
{ {
static const char errPrefix[] = "divelog.de-upload:"; 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; xsltStylesheetPtr xslt = NULL;
struct zip *zip; struct zip *zip;
@ -265,7 +259,7 @@ void uploadDiveLogsDE::updateProgressSlot(qint64 current, qint64 total)
{ {
if (!reply) if (!reply)
return; return;
if (total <= 0 || current <= 0) if (total <= 0 || current <= 0)
return; return;