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

@@ -175,7 +175,7 @@ void TestSettingsPage::apply()
m_settings->toSettings(Core::ICore::settings());
TestFrameworkManager *frameworkManager = TestFrameworkManager::instance();
frameworkManager->activateFrameworksFromSettings(m_settings);
TestTreeModel::instance()->scheduleTestFrameworksSync(true);
TestTreeModel::instance()->synchronizeTestFrameworks();
if (!changedIds.isEmpty())
TestTreeModel::instance()->rebuild(changedIds);
}