qmake: Keep list of executables if none is marked qtc_runnable

Change-Id: I9d20e0f81c7140cb400d479f4f11f82f7b56fdaa
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2017-02-24 17:46:16 +01:00
committed by Tobias Hunger
parent 4275182cf9
commit 92d818f327

View File

@@ -565,8 +565,11 @@ QList<Core::Id> DesktopQmakeRunConfigurationFactory::availableCreationIds(Target
QmakeProject *project = static_cast<QmakeProject *>(parent->project());
QList<QmakeProFile *> files = project->applicationProFiles();
if (mode == AutoCreate)
files = QmakeProject::proFilesWithQtcRunnable(files);
if (mode == AutoCreate) {
QList<QmakeProFile *> markedFiles = QmakeProject::proFilesWithQtcRunnable(files);
if (!markedFiles.isEmpty())
files = markedFiles;
}
return QmakeProject::idsForProFiles(Core::Id(QMAKE_RC_PREFIX), files);
}