summaryrefslogtreecommitdiffstats
path: root/core/imagedownloader.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-12-30 14:27:04 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-12-30 14:27:04 -0800
commit47d5dc9681361c56da5b37788371689be5ab7bc4 (patch)
tree819d85295031cf84959b5ec61760c4d009f63ac8 /core/imagedownloader.cpp
parentb5f0a4a02519aba130b8e061f222cb4ae46444ef (diff)
parent529a4d499b8dad35de6cd43e3004017ccfd288aa (diff)
downloadsubsurface-47d5dc9681361c56da5b37788371689be5ab7bc4.tar.gz
Merge branch 'webengine' of https://github.com/atdotde/subsurface
Diffstat (limited to 'core/imagedownloader.cpp')
-rw-r--r--core/imagedownloader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/imagedownloader.cpp b/core/imagedownloader.cpp
index d4dd85922..16c48a00e 100644
--- a/core/imagedownloader.cpp
+++ b/core/imagedownloader.cpp
@@ -100,6 +100,8 @@ SHashedImage::SHashedImage(struct picture *picture) : QImage()
// This did not load anything. Let's try to get the image from other sources
// Let's try to load it locally via its hash
QString filename = fileFromHash(picture->hash);
+ if (filename.isNull())
+ filename = QString(picture->filename);
if (filename.isNull()) {
// That didn't produce a local filename.
// Try the cloud server