summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectexplorer.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2022-09-30 14:56:15 +0200
committerChristian Stenger <christian.stenger@qt.io>2022-10-06 10:40:00 +0000
commite489a947a8ebf7cbb049be9973c583450966780b (patch)
treef002ffeb118eef677d50d6b7537eacd92caa83c6 /src/plugins/projectexplorer/projectexplorer.cpp
parent74e260a40d4d950ebb6e657505f111f0257b8fcc (diff)
downloadqt-creator-e489a947a8ebf7cbb049be9973c583450966780b.tar.gz
PE: Delay initialization of wizards
Other plugins may provide additional wizard search paths, so wait until they had a chance to register them. Amends 1cf6b031cfdf7344eb2ce6a403aa1029b7b8f75e. Change-Id: I268a42ab22d9c4f48d03589986220781e3623f46 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectexplorer.cpp')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index 8ef24d8ed3..43d193819f 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -832,10 +832,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
ToolChainManager::registerLanguage(Constants::CXX_LANGUAGE_ID, tr("C++"));
IWizardFactory::registerFeatureProvider(new KitFeatureProvider);
-
IWizardFactory::registerFactoryCreator([] { return new SimpleProjectWizard; });
- CustomWizard::createWizards();
- JsonWizardFactory::createWizardFactories();
connect(&dd->m_welcomePage, &ProjectWelcomePage::manageSessions,
dd, &ProjectExplorerPluginPrivate::showSessionManager);
@@ -894,7 +891,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
JsonWizardFactory::registerPageFactory(new KitsPageFactory);
JsonWizardFactory::registerPageFactory(new ProjectPageFactory);
JsonWizardFactory::registerPageFactory(new SummaryPageFactory);
-
JsonWizardFactory::registerGeneratorFactory(new FileGeneratorFactory);
JsonWizardFactory::registerGeneratorFactory(new ScannerGeneratorFactory);
@@ -2197,6 +2193,9 @@ void ProjectExplorerPluginPrivate::closeAllProjects()
void ProjectExplorerPlugin::extensionsInitialized()
{
+ CustomWizard::createWizards();
+ JsonWizardFactory::createWizardFactories();
+
// Register factories for all project managers
QStringList allGlobPatterns;