Core: Replace an in-Core connection by a direct call

Change-Id: Ic219a992658e080467a18d38121a41990cc377ce
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2018-02-01 11:47:30 +01:00
parent 974022c77b
commit e712c8b7e2
2 changed files with 2 additions and 3 deletions

View File

@@ -202,9 +202,6 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
expander->registerPrefix("#:", tr("A comment."), [](const QString &) { return QString(); }); expander->registerPrefix("#:", tr("A comment."), [](const QString &) { return QString(); });
// Make sure all wizards are there when the user might access the keyboard shortcuts:
connect(ICore::instance(), &ICore::optionsDialogRequested, []() { IWizardFactory::allWizardFactories(); });
Utils::PathChooser::setAboutToShowContextMenuHandler(&CorePlugin::addToPathChooserContextMenu); Utils::PathChooser::setAboutToShowContextMenuHandler(&CorePlugin::addToPathChooserContextMenu);
return success; return success;

View File

@@ -358,6 +358,8 @@ void ICore::showNewItemDialog(const QString &title,
bool ICore::showOptionsDialog(const Id page, QWidget *parent) bool ICore::showOptionsDialog(const Id page, QWidget *parent)
{ {
// Make sure all wizards are there when the user might access the keyboard shortcuts: // Make sure all wizards are there when the user might access the keyboard shortcuts:
(void) IWizardFactory::allWizardFactories();
emit m_instance->optionsDialogRequested(); emit m_instance->optionsDialogRequested();
if (!parent) if (!parent)