From 61340e1543e4d4dd80e4c46a778ed42eee94f6a4 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 8 May 2019 14:12:33 +0200 Subject: Fix error message when adding empty qmake project as subproject The JSON wizard code expects that at least one file gets opened either as a project or in an editor. This was not true when adding an empty qmake project, because its .pro file loses the "open as project" property when added as a sub-project, and there are no other files to open. We fix this by also setting "open in editor" for the .pro file, which makes sense (also for the top-level case), because a user is likely to add custom content there right away. Change-Id: Icdf68bccb2488bdb26b6b3c8410da901a4eb32df Reviewed-by: Eike Ziller --- share/qtcreator/templates/wizards/projects/qmake/empty/wizard.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/templates/wizards/projects/qmake/empty/wizard.json b/share/qtcreator/templates/wizards/projects/qmake/empty/wizard.json index d605b1c93d..3ae9c3ff55 100644 --- a/share/qtcreator/templates/wizards/projects/qmake/empty/wizard.json +++ b/share/qtcreator/templates/wizards/projects/qmake/empty/wizard.json @@ -45,7 +45,8 @@ { "source": "file.pro", "target": "%{ProFileName}", - "openAsProject": true + "openAsProject": true, + "openInEditor": true }, { "source": "../../git.ignore", -- cgit v1.2.3