QmlProjectManager: Save cycles in QmlPRunConfiguration::isEnabled()

No need to create the full command line when only the executable
is needed.

Change-Id: If2a6aec6c47d388878441330773121562923525b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
hjk
2024-09-20 08:16:50 +02:00
committed by Tim Jenssen
parent aedd6ba097
commit d25d40a198

View File

@@ -309,7 +309,7 @@ void QmlProjectRunConfiguration::setupQtVersionAspect()
bool QmlProjectRunConfiguration::isEnabled(Id) const
{
return const_cast<QmlProjectRunConfiguration *>(this)->qmlMainFile.isQmlFilePresent()
&& !commandLine().executable().isEmpty()
&& !qmlRuntimeFilePath().isEmpty()
&& activeBuildSystem()->hasParsingData();
}