diff options
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index 7828b4012..b6d9261c9 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -559,8 +559,7 @@ void DivelogsDeWebServices::prepareDivesForUpload() char *filename = prepare_dives_for_divelogs(true); if (filename) { QFile f(filename); - if (f.exists()) { - f.open(QIODevice::ReadOnly); + if (f.open(QIODevice::ReadOnly)) { uploadDives((QIODevice *)&f); f.close(); f.remove(); |