From e5d8dbd070506409e33c6547d9d80a852ab8b3f0 Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@theqtcompany.com>
Date: Mon, 20 Apr 2015 12:37:50 +0200
Subject: [PATCH] Json Wizard: Do not write .user files for subprojects

Delay till subprojects are handled and only create .user files for
those projects that are not a subproject.

Change-Id: I606acbce5a9a8ca7c033f94869e796edd88d6c1e
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
---
 src/plugins/projectexplorer/jsonwizard/jsonkitspage.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/projectexplorer/jsonwizard/jsonkitspage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonkitspage.cpp
index ed6985ecc5d..e93aeeeccad 100644
--- a/src/plugins/projectexplorer/jsonwizard/jsonkitspage.cpp
+++ b/src/plugins/projectexplorer/jsonwizard/jsonkitspage.cpp
@@ -55,7 +55,7 @@ void JsonKitsPage::initializePage()
     JsonWizard *wiz = qobject_cast<JsonWizard *>(wizard());
     QTC_ASSERT(wiz, return);
 
-    connect(wiz, &JsonWizard::filesReady, this, &JsonKitsPage::setupProjectFiles);
+    connect(wiz, &JsonWizard::allDone, this, &JsonKitsPage::setupProjectFiles);
 
     const QString platform = wiz->stringValue(QLatin1String("Platform"));
     const Core::FeatureSet preferred = Core::FeatureSet::fromStringList(wiz->value(QLatin1String("PreferredFeatures")).toStringList());
@@ -73,7 +73,7 @@ void JsonKitsPage::cleanupPage()
     JsonWizard *wiz = qobject_cast<JsonWizard *>(wizard());
     QTC_ASSERT(wiz, return);
 
-    disconnect(wiz, &JsonWizard::filesReady, this, 0);
+    disconnect(wiz, &JsonWizard::allDone, this, 0);
 
     TargetSetupPage::cleanupPage();
 }
-- 
GitLab