AutoTest: Avoid crash

Do not queue signals of parse results. In case of a shutdown
these signals could be received too late and the item cache
of the treemodel might have been destroyed already.

Fixes: QTCREATORBUG-28797
Change-Id: I6daa2b2464dbfb123af3b1e708794b2dbf897bff
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Christian Stenger
2023-02-13 09:23:23 +01:00
parent 06dda40ccc
commit 6383146b0e

View File

@@ -38,7 +38,7 @@ TestTreeModel::TestTreeModel(TestCodeParser *parser) :
connect(m_parser, &TestCodeParser::aboutToPerformFullParse, this,
&TestTreeModel::removeAllTestItems, Qt::QueuedConnection);
connect(m_parser, &TestCodeParser::testParseResultReady,
this, &TestTreeModel::onParseResultReady, Qt::QueuedConnection);
this, &TestTreeModel::onParseResultReady);
connect(m_parser, &TestCodeParser::parsingFinished,
this, &TestTreeModel::sweep, Qt::QueuedConnection);
connect(m_parser, &TestCodeParser::parsingFailed,