From 92d818f327b43c50411f4ffffca30700d82024a0 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 24 Feb 2017 17:46:16 +0100 Subject: [PATCH] qmake: Keep list of executables if none is marked qtc_runnable Change-Id: I9d20e0f81c7140cb400d479f4f11f82f7b56fdaa Reviewed-by: Tobias Hunger --- .../qmakeprojectmanager/desktopqmakerunconfiguration.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp b/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp index 4d36e17cfae..c6dbb8fda24 100644 --- a/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp +++ b/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp @@ -565,8 +565,11 @@ QList DesktopQmakeRunConfigurationFactory::availableCreationIds(Target QmakeProject *project = static_cast(parent->project()); QList files = project->applicationProFiles(); - if (mode == AutoCreate) - files = QmakeProject::proFilesWithQtcRunnable(files); + if (mode == AutoCreate) { + QList markedFiles = QmakeProject::proFilesWithQtcRunnable(files); + if (!markedFiles.isEmpty()) + files = markedFiles; + } return QmakeProject::idsForProFiles(Core::Id(QMAKE_RC_PREFIX), files); }