Switch away from modes that become deactivated
Switch away from modes that become deactivated

Make sure any mode that gets disabled is no longer displayed.

Task-number: QTCREATORBUG-1107
Reviewed-by: con

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