aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-05-08 14:12:33 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-05-15 13:36:37 +0000
commit61340e1543e4d4dd80e4c46a778ed42eee94f6a4 (patch)
tree7ea3e23f1eb7bb3a60aceed8657b2092cec9582d
parent3b83b7299422fd0a5c1ccc303cf8e34ec23d8ef2 (diff)
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 <eike.ziller@qt.io>
-rw-r--r--share/qtcreator/templates/wizards/projects/qmake/empty/wizard.json3
1 files changed, 2 insertions, 1 deletions
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",