forked from qt-creator/qt-creator
Remove use of global state from InfoBar
It is initialized by the core plugin anyhow, so give it enough information there to avoid accessing the global state later. Change-Id: I39e7a9f32ef5c7930faf9ba751e75bebf57b507e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -159,7 +159,7 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
addObject(m_editMode);
|
||||
ModeManager::activateMode(m_editMode->id());
|
||||
m_designMode = new DesignMode;
|
||||
InfoBar::initializeGloballySuppressed();
|
||||
InfoBar::initialize(ICore::settings(), creatorTheme());
|
||||
}
|
||||
|
||||
IWizardFactory::initialize();
|
||||
|
||||
Reference in New Issue
Block a user