forked from qt-creator/qt-creator
AnalyzerManager: Only connect signals after they can be handled
Change-Id: I0ddc894b5c7ae951e4888ada4af4d0cf7244120a Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -236,8 +236,6 @@ AnalyzerManagerPrivate::AnalyzerManagerPrivate(AnalyzerManager *qq):
|
||||
|
||||
setupActions();
|
||||
|
||||
connect(ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode*)),
|
||||
this, SLOT(modeChanged(Core::IMode*)));
|
||||
ProjectExplorerPlugin *pe = ProjectExplorerPlugin::instance();
|
||||
connect(pe, SIGNAL(updateRunActions()), SLOT(updateRunActions()));
|
||||
}
|
||||
@@ -295,6 +293,9 @@ void AnalyzerManagerPrivate::delayedInit()
|
||||
m_mode = new AnalyzerMode(q);
|
||||
createModeMainWindow();
|
||||
|
||||
connect(ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode*)),
|
||||
this, SLOT(modeChanged(Core::IMode*)));
|
||||
|
||||
// Right-side window with editor, output etc.
|
||||
MiniSplitter *mainWindowSplitter = new MiniSplitter;
|
||||
mainWindowSplitter->addWidget(m_mainWindow);
|
||||
|
||||
Reference in New Issue
Block a user