aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/jsonwizard
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-10-22 09:47:05 +0200
committerEike Ziller <eike.ziller@qt.io>2018-10-22 09:47:05 +0200
commit1cad74a7d426c0eeac53cd838cdc89c9788f84aa (patch)
treedff79507d9cef8d549a6ed6ce5884e4b3ccfb4ac /src/plugins/projectexplorer/jsonwizard
parent5c114a046de7154508cc071c82de4a9653cfc62c (diff)
parent496ecfc88a8b539a5a5ddbcbd7d0e88609824099 (diff)
Merge remote-tracking branch 'origin/4.7' into 4.8
Diffstat (limited to 'src/plugins/projectexplorer/jsonwizard')
-rw-r--r--src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp
index c708dd5af4..894fadcfa4 100644
--- a/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp
+++ b/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp
@@ -31,6 +31,7 @@
#include "../project.h"
#include "../projectexplorer.h"
#include "../projectexplorerconstants.h"
+#include "../projecttree.h"
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/messagemanager.h>
@@ -290,7 +291,7 @@ void JsonWizard::accept()
openFiles(m_files);
auto node = static_cast<ProjectExplorer::Node*>(value(ProjectExplorer::Constants::PREFERRED_PROJECT_NODE).value<void*>());
- if (node) // PREFERRED_PROJECT_NODE is not set for newly created projects
+ if (node && ProjectTree::hasNode(node)) // PREFERRED_PROJECT_NODE is not set for newly created projects
openProjectForNode(node);
}