aboutsummaryrefslogtreecommitdiffstats
path: root/core/imagedownloader.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-02-17 12:21:13 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-03-05 18:04:57 +0200
commita0d02bacf31fbfe45c679bf176ece6bb4843f53a (patch)
tree80be0833526c7375cb2d80cc6548c65a66dab2a0 /core/imagedownloader.cpp
parentf8835751dccdf33a0150993f2fb9a2656bb8b973 (diff)
downloadsubsurface-a0d02bacf31fbfe45c679bf176ece6bb4843f53a.tar.gz
Cleanup: remove updateHash() function
updateHash() and hashPicture() did the same thing, with the exception that hashPicture() marked the dive list as changed if a hash changed. This seems like a good idea in any case, therefore always use hashPicture(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/imagedownloader.cpp')
-rw-r--r--core/imagedownloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/imagedownloader.cpp b/core/imagedownloader.cpp
index 42ab52f0f..3b55dfd06 100644
--- a/core/imagedownloader.cpp
+++ b/core/imagedownloader.cpp
@@ -120,7 +120,7 @@ SHashedImage::SHashedImage(struct picture *picture) : QImage()
load(filename);
if (!isNull()) {
// Make sure the hash still matches the image file
- QtConcurrent::run(updateHash, clone_picture(picture));
+ QtConcurrent::run(hashPicture, clone_picture(picture));
} else {
// Interpret filename as URL
QtConcurrent::run(loadPicture, clone_picture(picture), false);