Commit eee4927d authored by Ulf Hermann's avatar Ulf Hermann

Analyzer: Only load a random first tool if none is selected already

Change-Id: Ia0ece94a8ef8d8f86d08400594744552c7a77242
Reviewed-by: default avatarTarja Sundqvist <tarja.sundqvist@theqtcompany.com>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 66774a8b
......@@ -432,7 +432,7 @@ void AnalyzerManagerPrivate::modeChanged(IMode *mode)
{
if (mode && mode == m_mode) {
m_mainWindow->setDockActionsVisible(true);
static bool firstTime = true;
static bool firstTime = !m_currentAction;
if (firstTime)
selectSavedTool();
firstTime = false;
......
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