forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user