summaryrefslogtreecommitdiffstats
path: root/qt-ui/divepicturewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/divepicturewidget.cpp')
-rw-r--r--qt-ui/divepicturewidget.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/divepicturewidget.cpp b/qt-ui/divepicturewidget.cpp
index a0d209b6d..1baceeb7e 100644
--- a/qt-ui/divepicturewidget.cpp
+++ b/qt-ui/divepicturewidget.cpp
@@ -4,6 +4,7 @@
#include "divelist.h"
#include <QtConcurrentMap>
#include <QtConcurrentRun>
+#include <QFuture>
#include <QDir>
#include <QCryptographicHash>
#include <mainwindow.h>
@@ -53,6 +54,14 @@ SPixmap scaleImages(picturepointer picture)
return ret;
}
+void DivePictureModel::updateDivePicturesWhenDone(QList<QFuture<void> > futures)
+{
+ Q_FOREACH (QFuture<void> f, futures) {
+ f.waitForFinished();
+ }
+ updateDivePictures();
+}
+
void DivePictureModel::updateDivePictures()
{
if (numberOfPictures != 0) {