core: correct QString arg problem

use report_error directly, instead of making a QString first,
argument syntax are different (%s vs. %1)

Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2019-12-09 08:49:03 +01:00 committed by Dirk Hohndel
parent 4710502dc8
commit 738d3057da

View file

@ -46,8 +46,7 @@ void uploadDiveLogsDE::doUpload(bool selected, const QString &userid, const QStr
// Make zip file, with all dives, in divelogs.de format
if (!prepareDives(selected, filename)) {
err = tr("Failed to create uploadDiveLogsDE file %s\n").arg(filename);
report_error(err.toUtf8());
report_error(tr("Failed to create upload file %s\n").toUtf8(), qPrintable(filename));
emit uploadFinish(false, err);
timeout.stop();
return;