From ad60ca84eea1e3a89b18293d101cb44e7041c9cd Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Fri, 30 Jan 2015 21:42:33 +0200 Subject: Export the XSLT based exports in a new thread. The XSLT based exports can consume long time while applying the xml format. This time can make the GUI unresponsive. Simply call the export functions in a new Thread. Signed-off-by: Gehad elrobey Signed-off-by: Dirk Hohndel --- qt-ui/divelogexportdialog.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/divelogexportdialog.h') diff --git a/qt-ui/divelogexportdialog.h b/qt-ui/divelogexportdialog.h index 0a603ced6..14f8f4539 100644 --- a/qt-ui/divelogexportdialog.h +++ b/qt-ui/divelogexportdialog.h @@ -3,6 +3,7 @@ #include #include +#include #include "helpers.h" #include "statistics.h" @@ -27,6 +28,7 @@ slots: void on_exportGroup_buttonClicked(QAbstractButton *); private: + QFuture future; Ui::DiveLogExportDialog *ui; void showExplanation(); void exportHtmlInit(const QString &filename); -- cgit v1.2.3-70-g09d2