@@ -24,6 +24,7 @@
2424#include <QtGui/QImage>
2525#include <QtGui/QGuiApplication>
2626#include <QtQuick/QQuickWindow>
27+#include <QtConcurrent/QtConcurrentRun>
2728
2829#include <QDebug>
2930
@@ -74,7 +75,7 @@ void ScreenGrabber::captureAndSave()
7475 }
7576
7677 QImage screenshot = main_window->grabWindow();
77− saveScreenshot(screenshot, makeFileName(), getFormat(), screenshotQuality);
78+ QtConcurrent::run(saveScreenshot, screenshot, makeFileName(), getFormat(), screenshotQuality);
7879}
7980
8081QString ScreenGrabber::makeFileName()