diff --git a/src/plugins/autotest/testtreemodel.cpp b/src/plugins/autotest/testtreemodel.cpp index 89cfc3dff05..dcae1193c4f 100644 --- a/src/plugins/autotest/testtreemodel.cpp +++ b/src/plugins/autotest/testtreemodel.cpp @@ -307,9 +307,7 @@ void TestTreeModel::synchronizeTestFrameworks() { ProjectExplorer::Project *project = ProjectExplorer::SessionManager::startupProject(); TestFrameworks sorted; - const QVariant useGlobal = project ? project->namedSettings(Constants::SK_USE_GLOBAL) - : QVariant(); - if (!useGlobal.isValid() || AutotestPlugin::projectSettings(project)->useGlobalSettings()) { + if (!project || AutotestPlugin::projectSettings(project)->useGlobalSettings()) { sorted = Utils::filtered(TestFrameworkManager::registeredFrameworks(), &ITestFramework::active); qCDebug(LOG) << "Active frameworks sorted by priority" << sorted;