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:
Christian Stenger
2016-12-13 14:15:30 +01:00
parent b9fc628bb9
commit 6137d14857

View File

@@ -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;