ClangCodeModel: Fix possible crash in clangd test

Change-Id: Ifb68b62f1076fa6b086717d7a5db939e52e5e9f2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-11-19 16:31:08 +01:00
parent 1d57f755c2
commit 799ffe7e0e

View File

@@ -636,7 +636,7 @@ void ClangdTestTooltips::test()
helpItem = h;
loop.quit();
};
connect(client(), &ClangdClient::helpItemGathered, handler);
connect(client(), &ClangdClient::helpItemGathered, &loop, handler);
QTextCursor cursor(doc->document());
const int pos = Utils::Text::positionInText(doc->document(), line, column);