diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-18 13:32:17 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-18 11:54:23 +0000 |
commit | eee4927d685ad91bb59b0311fd265b33470d1045 (patch) | |
tree | 43af0c1d8dea1550ff4bab205611640efd048403 | |
parent | 66774a8bdb64d428b7ff3b1bcbbd4d5ffe33bd36 (diff) | |
download | qt-creator-eee4927d685ad91bb59b0311fd265b33470d1045.tar.gz |
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>
-rw-r--r-- | src/plugins/analyzerbase/analyzermanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/analyzerbase/analyzermanager.cpp b/src/plugins/analyzerbase/analyzermanager.cpp index 168e65fd2d..6b47c321e5 100644 --- a/src/plugins/analyzerbase/analyzermanager.cpp +++ b/src/plugins/analyzerbase/analyzermanager.cpp @@ -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; |