AutoTest: Re-order responsibilities

Keep the timer for syncing frameworks where it
is really used, do not create functions that are
not necessary at all.

Change-Id: Ie0a49a2611dc67510b72562455ea2a1af7b1c538
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2019-09-05 10:42:01 +02:00
parent ad0dcb9668
commit 49942bc06a
8 changed files with 16 additions and 39 deletions

View File

@@ -56,14 +56,12 @@ void TestProjectSettings::setUseGlobalSettings(bool useGlobal)
if (m_useGlobalSettings == useGlobal)
return;
m_useGlobalSettings = useGlobal;
TestTreeModel::instance()->scheduleTestFrameworksSync(false);
}
void TestProjectSettings::activateFramework(const Core::Id &id, bool activate)
{
if (m_activeTestFrameworks.value(id) != activate) {
m_activeTestFrameworks[id] = activate;
TestTreeModel::instance()->scheduleTestFrameworksSync(false);
}
}