aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/jsonwizard
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-12-12 16:10:34 +0100
committerhjk <hjk@qt.io>2018-12-13 14:22:01 +0000
commit5ad66f6442ae6ea7ac89672139671e590ac6f289 (patch)
tree0866b473c189c06c44adc9343efc4d393e7df653 /src/plugins/projectexplorer/jsonwizard
parentc6e09c0c80dd119740113f5f86539d6000ad0622 (diff)
ProjectExplorer: Fix initial top level expansion of projects
For freshly created projects using the json wizard, this expands the outermost level of that project's entry in the project tree. This intentionally does not trigger when reloading from existing sessions do honor a user's choice after collapsing that item manually. Fixes: QTCREATORBUG-17800 Change-Id: I101efaea84e68a4e769c803918652a1447805b2b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/jsonwizard')
-rw-r--r--src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp
index fb0de4a329..a3bad8656f 100644
--- a/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp
+++ b/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp
@@ -354,6 +354,7 @@ void JsonWizard::openFiles(const JsonWizard::GeneratorFiles &files)
}
break;
}
+ result.project()->setNeedsInitialExpansion(true);
openedSomething = true;
}
if (file.attributes() & Core::GeneratedFile::OpenEditorAttribute) {