forked from qt-creator/qt-creator
analyzer: postpone selecting saved tool
... until the analyze mode is actually selected Change-Id: I7d03c48a4b4260d54bf3218b3a493ceacd2d2967 Reviewed-on: http://codereview.qt.nokia.com/1243 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -553,7 +553,16 @@ void AnalyzerManagerPrivate::startTool()
|
|||||||
|
|
||||||
void AnalyzerManagerPrivate::modeChanged(IMode *mode)
|
void AnalyzerManagerPrivate::modeChanged(IMode *mode)
|
||||||
{
|
{
|
||||||
m_mainWindow->setDockActionsVisible(mode == m_mode);
|
if (mode && mode == m_mode) {
|
||||||
|
m_mainWindow->setDockActionsVisible(true);
|
||||||
|
static bool firstTime = true;
|
||||||
|
if (firstTime)
|
||||||
|
selectSavedTool();
|
||||||
|
firstTime = false;
|
||||||
|
updateRunActions();
|
||||||
|
} else {
|
||||||
|
m_mainWindow->setDockActionsVisible(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QAction *AnalyzerManagerPrivate::actionFromToolAndMode(IAnalyzerTool *tool, StartMode mode)
|
QAction *AnalyzerManagerPrivate::actionFromToolAndMode(IAnalyzerTool *tool, StartMode mode)
|
||||||
@@ -781,7 +790,6 @@ void AnalyzerManager::extensionsInitialized()
|
|||||||
|
|
||||||
foreach (IAnalyzerTool *tool, d->m_tools)
|
foreach (IAnalyzerTool *tool, d->m_tools)
|
||||||
tool->extensionsInitialized();
|
tool->extensionsInitialized();
|
||||||
d->selectSavedTool();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnalyzerManager::shutdown()
|
void AnalyzerManager::shutdown()
|
||||||
|
|||||||
Reference in New Issue
Block a user