From 69442dcbb81b349cf85483a88134b8b345e6eec9 Mon Sep 17 00:00:00 2001 From: evgeny Date: Sun, 4 Oct 2026 15:52:18 +0200 Subject: [PATCH] Start wrapped-link selection test inside the first link line --- tools/chatgui/tests/test_invite_links.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/chatgui/tests/test_invite_links.cpp b/tools/chatgui/tests/test_invite_links.cpp index 441def6c..c200b3ff 100644 --- a/tools/chatgui/tests/test_invite_links.cpp +++ b/tools/chatgui/tests/test_invite_links.cpp @@ -41,7 +41,7 @@ private slots: for (int y = 10; y < option.rect.height(); y += 8) { for (int x = 10; x < view.viewport()->width(); x += 16) { const QString link = delegate.inviteLinkAt(option, index, QPoint(x, y)); - if (link == first) { firstPoint = QPoint(x, y); firstRows.insert(y); } + if (link == first) { if (firstPoint.isNull()) firstPoint = QPoint(x, y); firstRows.insert(y); } else if (link == second) secondPoint = QPoint(x, y); else QVERIFY(link.isEmpty()); }