diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-06-12 12:50:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-13 08:35:23 -0700 |
commit | 4c19d3da1d6c350f0c773a5260fe46dccdaddb43 (patch) | |
tree | cf1e35f725f64999e7b1afb918b5415d540ce0b4 /core/imagedownloader.h | |
parent | be361c5cfb80344cf23c61a26c1c06f863bc28f2 (diff) | |
download | subsurface-4c19d3da1d6c350f0c773a5260fe46dccdaddb43.tar.gz |
Dive pictures: Make failure of loading images less noisy
For debug reasons, failure to load the original image was spilled
to the console, even if the local file was then found.
Only print a message, when also the local image failed loading.
This needed a bit of code reshuffling. To know when to print a
failed-loading message, the URL is now checked at the Thumbnailer
level, not the ImageDownloader level. The ImageDownloader is
passed the URL and the original filename (if different). The
image is loaded from the URL, but the signals send the original
filename, so that the thumbnail can be associated to the proper
image.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/imagedownloader.h')
-rw-r--r-- | core/imagedownloader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/imagedownloader.h b/core/imagedownloader.h index d91dbcaad..13ba80746 100644 --- a/core/imagedownloader.h +++ b/core/imagedownloader.h @@ -13,7 +13,7 @@ public: static ImageDownloader *instance(); ImageDownloader(); public slots: - void load(QString filename); + void load(QUrl url, QString filename); signals: void loaded(QString filename); void failed(QString filename); |