summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/CachingImage.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/CachingImage.qml b/widgets/CachingImage.qml
index cff5676..692a090 100644
--- a/widgets/CachingImage.qml
+++ b/widgets/CachingImage.qml
@@ -8,7 +8,12 @@ Image {
required property string path
property string thumbnail: path
- source: `file://${thumbnail}`
+ source: {
+ if (thumbnail)
+ return `file://${thumbnail}`;
+ shaProc.running = true;
+ return "";
+ }
asynchronous: true
fillMode: Image.PreserveAspectCrop