From 0b44b6e709aa9ef8a62af67907bde2105487e028 Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@theqtcompany.com> Date: Tue, 19 May 2015 15:52:16 +0200 Subject: [PATCH] WizardFactory: Trigger scan for wizards early Trigger scan for wizards in delayedInitialize since we need to create commands for the wizards. Also make sure wizards are scanned for when opening the options page, so that the keyboard shortcut page can be fully populated. Change-Id: Iefe28dbcb17f43a7ed114f056012fe8f6e4ae352 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> --- src/plugins/coreplugin/coreplugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/coreplugin/coreplugin.cpp b/src/plugins/coreplugin/coreplugin.cpp index e4ce23df18a..e4903e8d19e 100644 --- a/src/plugins/coreplugin/coreplugin.cpp +++ b/src/plugins/coreplugin/coreplugin.cpp @@ -211,6 +211,9 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage) expander->registerPrefix("CurrentTime:", tr("The current time (QTime formatstring)."), [](const QString &fmt) { return QTime::currentTime().toString(fmt); }); + // Make sure all wizards are there when the user might access the keyboard shortcuts: + connect(ICore::instance(), &ICore::optionsDialogRequested, []() { IWizardFactory::allWizardFactories(); }); + return success; } @@ -233,6 +236,7 @@ bool CorePlugin::delayedInitialize() { HelpManager::setupHelpManager(); m_locator->delayedInitialize(); + IWizardFactory::allWizardFactories(); // scan for all wizard factories return true; } -- GitLab