From df6a5aabb6d77821e72de43de4fe7f490863afe4 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 5 Mar 2022 03:45:45 +0100 Subject: [PATCH] Fix clicking on images in replies fixes #881 --- resources/qml/delegates/Reply.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {