Commit 38c7f981 authored by hjk's avatar hjk Committed by hjk

analyzer: postpone selecting saved tool

... until the analyze mode is actually selected

Change-Id: I7d03c48a4b4260d54bf3218b3a493ceacd2d2967
Reviewed-on: http://codereview.qt.nokia.com/1243Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 11dde672
......@@ -553,7 +553,16 @@ void AnalyzerManagerPrivate::startTool()
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)
......@@ -781,7 +790,6 @@ void AnalyzerManager::extensionsInitialized()
foreach (IAnalyzerTool *tool, d->m_tools)
tool->extensionsInitialized();
d->selectSavedTool();
}
void AnalyzerManager::shutdown()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment