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