Disable opening images, when they are not loaded

This commit is contained in:
Nicolas Werner 2020-04-21 20:55:28 +02:00
parent e8271acd99
commit 6a39b29acc

View file

@ -33,7 +33,7 @@ Item {
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
MouseArea { MouseArea {
enabled: model.data.type == MtxEvent.ImageMessage enabled: model.data.type == MtxEvent.ImageMessage && img.status == Image.Ready
anchors.fill: parent anchors.fill: parent
onClicked: timelineManager.openImageOverlay(model.data.url, model.data.id) onClicked: timelineManager.openImageOverlay(model.data.url, model.data.id)
} }