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>
This commit is contained in:
Christian Kandeler
2019-05-08 14:12:33 +02:00
parent 3b83b72994
commit 61340e1543

View File

@@ -45,7 +45,8 @@
{ {
"source": "file.pro", "source": "file.pro",
"target": "%{ProFileName}", "target": "%{ProFileName}",
"openAsProject": true "openAsProject": true,
"openInEditor": true
}, },
{ {
"source": "../../git.ignore", "source": "../../git.ignore",