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.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/divepicturewidget.cpp b/qt-ui/divepicturewidget.cpp
index 46e87d4f3..fd64f613a 100644
--- a/qt-ui/divepicturewidget.cpp
+++ b/qt-ui/divepicturewidget.cpp
@@ -52,8 +52,7 @@ void DivePictureModel::updateDivePictures()
pictures.push_back(QString(picture->filename));
}
- SPixmapList retList = QtConcurrent::blockingMapped<SPixmapList>(pictures, scaleImages);
- Q_FOREACH (const SPixmap &pixmap, retList)
+ Q_FOREACH (const SPixmap &pixmap, QtConcurrent::blockingMapped<SPixmapList>(pictures, scaleImages))
stringPixmapCache[pixmap.first].image = pixmap.second;
beginInsertRows(QModelIndex(), 0, numberOfPictures - 1);