Commit 92d818f3 authored by hjk's avatar hjk Committed by Tobias Hunger

qmake: Keep list of executables if none is marked qtc_runnable

Change-Id: I9d20e0f81c7140cb400d479f4f11f82f7b56fdaa
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 4275182c
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment