diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-08-03 20:22:48 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-03 13:04:38 -0700 |
commit | 2b100c8c173f790eaa80076b138d9386916a5a83 (patch) | |
tree | 1ac8436d318fd77e04bc0f5c710487d7ef4aaeb0 /qt-ui | |
parent | 2ad433671f723db36dec268b74c69994a7bdd427 (diff) | |
download | subsurface-2b100c8c173f790eaa80076b138d9386916a5a83.tar.gz |
Try to fix divelogs upload on Windows
zip_open needs correct directory separators. QFile::encodeName does not
do this conversion, so we must call it explicitly.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index 565dc3fc7..6fa0b0afe 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -124,7 +124,7 @@ bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile, int error_code; - zip = zip_open(QFile::encodeName(tempfile), ZIP_CREATE, &error_code); + zip = zip_open(QFile::encodeName(QDir::toNativeSeparators(tempfile)), ZIP_CREATE, &error_code); if (!zip) { char buffer[1024]; zip_error_to_str(buffer, sizeof buffer, error_code, errno); |