forked from qt-creator/qt-creator
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user