summaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-10 10:22:34 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-10 10:22:34 -0700
commit1e3700c11fc58801f78ac8fd94a672a7af2238b5 (patch)
treed1e62e6a2fd687ff0c6b203a57680e1031c44747 /qthelper.cpp
parent44b55bd1a220531c5d62e8bce01d27392de2dbee (diff)
downloadsubsurface-1e3700c11fc58801f78ac8fd94a672a7af2238b5.tar.gz
Don't call UI functions from helper code
This may seem much more complicated but actually is much cleaner. Add each thread we start to the list of future results and add a new UI function that updates the UI once all of the threads have finished. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index 14e67e089..189d47ed3 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -870,6 +870,4 @@ void learnImages(const QDir dir, int max_recursions, bool recursed)
}
QtConcurrent::blockingMap(files, hashFile);
- if (!recursed)
- DivePictureModel::instance()->updateDivePictures();
}