diff options
Diffstat (limited to 'core/uploadDiveLogsDE.cpp')
-rw-r--r-- | core/uploadDiveLogsDE.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/uploadDiveLogsDE.cpp b/core/uploadDiveLogsDE.cpp index 29877af70..5e614d168 100644 --- a/core/uploadDiveLogsDE.cpp +++ b/core/uploadDiveLogsDE.cpp @@ -74,6 +74,8 @@ bool uploadDiveLogsDE::prepareDives(const QString &tempfile, const bool selected xsltStylesheetPtr xslt = NULL; struct zip *zip; + emit uploadStatus(tr("building zip file to upload")); + xslt = get_stylesheet("divelogs-export.xslt"); if (!xslt) { qDebug() << errPrefix << "missing stylesheet"; @@ -214,6 +216,8 @@ void uploadDiveLogsDE::uploadDives(const QString &filename, const QString &useri } multipart = new QHttpMultiPart(QHttpMultiPart::FormDataType); + emit uploadStatus(tr("Uploading dives")); + // prepare header with filename (of all dives) and pointer to file args = "form-data; name=\"userfile\"; filename=\"" + filename + "\""; part1.setRawHeader("Content-Disposition", args.toLatin1()); |