From 6a39b29acc7595fff572afe920ed9a3ac42768e5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 21 Apr 2020 20:55:28 +0200 Subject: [PATCH] Disable opening images, when they are not loaded --- resources/qml/delegates/ImageMessage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }