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

Change-Id: Ia0ece94a8ef8d8f86d08400594744552c7a77242
Reviewed-by: Tarja Sundqvist <tarja.sundqvist@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-09-18 13:32:17 +02:00
parent 66774a8bdb
commit eee4927d68

View File

@@ -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;