Analyzer: Make sure right tool is shown when triggered via menu
Analyzer: Make sure right tool is shown when triggered via menu

Selecting a tool via menu while the Analyze mode is active resulted
in the wrong 'default' tool being selected when the tool finally
forces a switch to Analyze mode. This fixes it by switching to
Analyze mode first -> default tool is shown -> selected tool is shown.

Change-Id: I36e770c932b9c13552dc3604db58837a89d637b6
Reviewed-on: http://codereview.qt-project.org/5466
Reviewed-by: Christiaan Janssen <293f7292b4e4c70c138c7f8cfde88e640fae39b8@nokia.com>
Reviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>
Reviewed-by: hjk <6fac1c92f5b9c7890a04d7f8a9d8912d16355eac@ovi.com>

syntheticpp/qt-creator,syntheticpp/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,bakaiadam/collaborative_qt_creator,danimo/qt-creator,malikcjm/qtcreator,AltarBeastiful/qt-creator,richardmg/qtcreator,kuba1/qtcreator,hdweiss/qt-creator-visualizer,farseerri/git_code,duythanhphan/qt-creator,Distrotech/qtcreator,KDAB/KDAB-Creator,richardmg/qtcreator,richardmg/qtcreator,Distrotech/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,hdweiss/qt-creator-visualizer,omniacreator/qtcreator,malikcjm/qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,bakaiadam/collaborative_qt_creator,duythanhphan/qt-creator,maui-packages/qt-creator,farseerri/git_code,duythanhphan/qt-creator,darksylinc/qt-creator,colede/qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,jonnor/qt-creator,omniacreator/qtcreator,farseerri/git_code,azat/qtcreator,colede/qtcreator,KDE/android-qt-creator,ostash/qt-creator-i18n-uk,maui-packages/qt-creator,darksylinc/qt-creator,colede/qtcreator,kuba1/qtcreator,KDAB/KDAB-Creator,syntheticpp/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,bakaiadam/collaborative_qt_creator,darksylinc/qt-creator,hdweiss/qt-creator-visualizer,martyone/sailfish-qtcreator,KDAB/KDAB-Creator,AltarBeastiful/qt-creator,colede/qtcreator,martyone/sailfish-qtcreator,malikcjm/qtcreator,richardmg/qtcreator,kuba1/qtcreator,syntheticpp/qt-creator,darksylinc/qt-creator,martyone/sailfish-qtcreator,darksylinc/qt-creator,duythanhphan/qt-creator,danimo/qt-creator,jonnor/qt-creator,richardmg/qtcreator,bakaiadam/collaborative_qt_creator,azat/qtcreator,Distrotech/qtcreator,KDAB/KDAB-Creator,hdweiss/qt-creator-visualizer,martyone/sailfish-qtcreator,xianian/qt-creator,malikcjm/qtcreator,ostash/qt-creator-i18n-uk,xianian/qt-creator,azat/qtcreator,KDE/android-qt-creator,maui-packages/qt-creator,Distrotech/qtcreator,darksylinc/qt-creator,danimo/qt-creator,malikcjm/qtcreator,bakaiadam/collaborative_qt_creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,colede/qtcreator,maui-packages/qt-creator,omniacreator/qtcreator,kuba1/qtcreator,hdweiss/qt-creator-visualizer,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,KDAB/KDAB-Creator,bakaiadam/collaborative_qt_creator,ostash/qt-creator-i18n-uk,bakaiadam/collaborative_qt_creator,kuba1/qtcreator,martyone/sailfish-qtcreator,KDE/android-qt-creator,kuba1/qtcreator,omniacreator/qtcreator,KDE/android-qt-creator,danimo/qt-creator,syntheticpp/qt-creator,AltarBeastiful/qt-creator,azat/qtcreator,maui-packages/qt-creator,KDAB/KDAB-Creator,omniacreator/qtcreator,KDE/android-qt-creator,duythanhphan/qt-creator,jonnor/qt-creator,danimo/qt-creator,jonnor/qt-creator,amyvmiwei/qt-creator,malikcjm/qtcreator,ostash/qt-creator-i18n-uk,amyvmiwei/qt-creator,xianian/qt-creator,farseerri/git_code,duythanhphan/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,darksylinc/qt-creator,ostash/qt-creator-i18n-uk,Distrotech/qtcreator,malikcjm/qtcreator,azat/qtcreator,KDE/android-qt-creator,jonnor/qt-creator,xianian/qt-creator,ostash/qt-creator-i18n-uk,AltarBeastiful/qt-creator,farseerri/git_code,danimo/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,colede/qtcreator,duythanhphan/qt-creator,maui-packages/qt-creator,KDE/android-qt-creator,farseerri/git_code,xianian/qt-creator,KDE/android-qt-creator,richardmg/qtcreator,amyvmiwei/qt-creator,richardmg/qtcreator,amyvmiwei/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,kuba1/qtcreator,darksylinc/qt-creator,xianian/qt-creator,jonnor/qt-creator,kuba1/qtcreator,colede/qtcreator,ostash/qt-creator-i18n-uk,AltarBeastiful/qt-creator,hdweiss/qt-creator-visualizer,farseerri/git_code,syntheticpp/qt-creator,Distrotech/qtcreator,syntheticpp/qt-creator,maui-packages/qt-creator,azat/qtcreator