diff options
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index b22b7e265..c0c79b00d 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -701,13 +701,10 @@ void MainWindow::on_actionCloudOnline_triggered() updateCloudOnlineStatus(); } -void learnImageDirs(QStringList dirnames) +static void learnImageDirs(QStringList dirnames) { - QList<QFuture<void> > futures; - foreach (QString dir, dirnames) { - futures << QtConcurrent::run(learnImages, QDir(dir), 10); - } - DivePictureModel::instance()->updateDivePicturesWhenDone(futures); + learnImages(dirnames, 10); + DivePictureModel::instance()->updateDivePictures(); } void MainWindow::on_actionHash_images_triggered() |