summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-03-05 03:45:45 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-03-05 03:45:45 +0100
commitdf6a5aabb6d77821e72de43de4fe7f490863afe4 (patch)
treee482ef3cfcbfb2930d62c8f2beaf0f23c1bd3448
parentSet font properly (diff)
downloadnheko-df6a5aabb6d77821e72de43de4fe7f490863afe4.tar.xz
Fix clicking on images in replies
fixes #881
-rw-r--r--resources/qml/delegates/Reply.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/delegates/Reply.qml b/resources/qml/delegates/Reply.qml

index f26bc5aa..f5756390 100644 --- a/resources/qml/delegates/Reply.qml +++ b/resources/qml/delegates/Reply.qml
@@ -65,7 +65,7 @@ Item { TapHandler { acceptedButtons: Qt.LeftButton onSingleTapped: { - let link = reply.child.linkAt(eventPoint.position.x, eventPoint.position.y - userName_.implicitHeight); + let link = reply.child.linkAt != undefined && reply.child.linkAt(eventPoint.position.x, eventPoint.position.y - userName_.implicitHeight); if (link) { Nheko.openLink(link) } else {