summary refs log tree commit diff
path: root/resources/qml/delegates/ImageMessage.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-04-21 20:55:28 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-04-21 20:55:28 +0200
commit6a39b29acc7595fff572afe920ed9a3ac42768e5 (patch)
tree0cbcd0e0e6c7d0425c887a76e762b851197f151b /resources/qml/delegates/ImageMessage.qml
parentFix own encrypted images not showing up after sending (diff)
downloadnheko-6a39b29acc7595fff572afe920ed9a3ac42768e5.tar.xz
Disable opening images, when they are not loaded
Diffstat (limited to 'resources/qml/delegates/ImageMessage.qml')
-rw-r--r--resources/qml/delegates/ImageMessage.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml
index 229f8f09..c7e6d127 100644
--- a/resources/qml/delegates/ImageMessage.qml
+++ b/resources/qml/delegates/ImageMessage.qml
@@ -33,7 +33,7 @@ Item {
 		fillMode: Image.PreserveAspectFit
 
 		MouseArea {
-			enabled: model.data.type == MtxEvent.ImageMessage
+			enabled: model.data.type == MtxEvent.ImageMessage && img.status == Image.Ready
 			anchors.fill: parent
 			onClicked: timelineManager.openImageOverlay(model.data.url, model.data.id)
 		}