summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-09 08:49:03 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-11 12:36:43 -0500
commit738d3057da3241d0d796812b3822270651a12691 (patch)
tree3713e944365db7f491c7eedbd6fa07ac15c522f7 /core
parent4710502dc8436db8fa150b385e9c445d93847a08 (diff)
downloadsubsurface-738d3057da3241d0d796812b3822270651a12691.tar.gz
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>
Diffstat (limited to 'core')
-rw-r--r--core/uploadDiveLogsDE.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/uploadDiveLogsDE.cpp b/core/uploadDiveLogsDE.cpp
index a72633ef6..ff86cdb96 100644
--- a/core/uploadDiveLogsDE.cpp
+++ b/core/uploadDiveLogsDE.cpp
@@ -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;