forked from qt-creator/qt-creator
AutoTest: Avoid scheduling single shots if not necessary
This avoids doing internal stuff based on getting respective signals if there is no active test framework. The only signal that still will perform some more internal stuff is triggering a rescan from the context or global menus. Change-Id: I78f065b6bc77a100676d63248b438d3ebc71809b Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -130,6 +130,8 @@ void TestCodeParser::syncTestFrameworks(const QVector<Core::Id> &frameworkIds)
|
||||
|
||||
void TestCodeParser::emitUpdateTestTree()
|
||||
{
|
||||
if (m_testCodeParsers.isEmpty())
|
||||
return;
|
||||
if (m_singleShotScheduled) {
|
||||
qCDebug(LOG) << "not scheduling another updateTestTree";
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user