forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user