Skip to content
Snippets Groups Projects
Commit 6a39b29a authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Disable opening images, when they are not loaded

parent e8271acd
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment