aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/subsurfacewebservices.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index 952927e8c..c114c80eb 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -539,6 +539,7 @@ void DivelogsDeWebServices::downloadDives()
void DivelogsDeWebServices::prepareDivesForUpload()
{
+ QString errorText(tr("Cannot create DLD file"));
char *filename = prepare_dives_for_divelogs(true);
if (filename) {
QFile f(filename);
@@ -549,8 +550,10 @@ void DivelogsDeWebServices::prepareDivesForUpload()
f.remove();
return;
}
- mainWindow()->showError(QString("Cannot create file: ").append(filename));
+ mainWindow()->showError(errorText.append(": ").append(filename));
+ return;
}
+ mainWindow()->showError(errorText.append("!"));
}
void DivelogsDeWebServices::uploadDives(QIODevice *dldContent)