From d04d63d8d4d68796c146d5f64a09d6cb8e75bc4f Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@theqtcompany.com>
Date: Tue, 19 May 2015 15:37:19 +0200
Subject: [PATCH] Wizards: Add a command to trigger a reload of all wizards

This will make the custom and the json wizard scan for their files
the next time all wizards are requested.

Change-Id: Ibe1ed3f838d1c177e9bbf91ed0eae49028f671cd
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
---
 src/plugins/coreplugin/iwizardfactory.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/plugins/coreplugin/iwizardfactory.cpp b/src/plugins/coreplugin/iwizardfactory.cpp
index aa2cbd64e4a..28612db6e62 100644
--- a/src/plugins/coreplugin/iwizardfactory.cpp
+++ b/src/plugins/coreplugin/iwizardfactory.cpp
@@ -341,4 +341,9 @@ FeatureSet IWizardFactory::pluginFeatures() const
 void IWizardFactory::initialize()
 {
     connect(ICore::instance(), &ICore::coreAboutToClose, &IWizardFactory::clearWizardFactories);
+
+    auto resetAction = new QAction(tr("Reload All Wizards"), ActionManager::instance());
+    ActionManager::registerAction(resetAction, "Wizard.Factory.Reset");
+
+    connect(resetAction, &QAction::triggered, &IWizardFactory::clearWizardFactories);
 }
-- 
GitLab