Index: /trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolbarTools.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolbarTools.cpp	(revision 73600)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolbarTools.cpp	(revision 73601)
@@ -47,4 +47,28 @@
 }
 
+void UIToolbarTools::switchToTabBar(TabBarType enmType)
+{
+    /* Handle known types: */
+    switch (enmType)
+    {
+        case TabBarType_Machine:
+        {
+            if (m_pTabBarGlobal)
+                m_pTabBarGlobal->setVisible(false);
+            if (m_pTabBarMachine)
+                m_pTabBarMachine->setVisible(true);
+            break;
+        }
+        case TabBarType_Global:
+        {
+            if (m_pTabBarMachine)
+                m_pTabBarMachine->setVisible(false);
+            if (m_pTabBarGlobal)
+                m_pTabBarGlobal->setVisible(true);
+            break;
+        }
+    }
+}
+
 void UIToolbarTools::setTabBarEnabledMachine(bool fEnabled)
 {
@@ -163,23 +187,4 @@
 }
 
-void UIToolbarTools::sltHandleActionToggle()
-{
-    /* Handle known actions: */
-    if (m_pActionPool->action(UIActionIndexST_M_Tools_T_Machine)->isChecked())
-    {
-        if (m_pTabBarGlobal)
-            m_pTabBarGlobal->setVisible(false);
-        if (m_pTabBarMachine)
-            m_pTabBarMachine->setVisible(true);
-    }
-    else if (m_pActionPool->action(UIActionIndexST_M_Tools_T_Global)->isChecked())
-    {
-        if (m_pTabBarMachine)
-            m_pTabBarMachine->setVisible(false);
-        if (m_pTabBarGlobal)
-            m_pTabBarGlobal->setVisible(true);
-    }
-}
-
 void UIToolbarTools::prepare()
 {
@@ -188,7 +193,4 @@
     /* Prepare widgets: */
     prepareWidgets();
-
-    /* Make sure just one tab-bar shown initially: */
-    sltHandleActionToggle();
 }
 
@@ -223,6 +225,4 @@
     /* Configure 'Machine' toggle action: */
     m_pActionPool->action(UIActionIndexST_M_Tools_T_Machine)->setMenu(pMenuMachine);
-    connect(m_pActionPool->action(UIActionIndexST_M_Tools_T_Machine), &UIAction::toggled,
-            this, &UIToolbarTools::sltHandleActionToggle);
 
     /* Configure 'Global' menu: */
@@ -247,9 +247,4 @@
     /* Configure 'Global' toggle action: */
     m_pActionPool->action(UIActionIndexST_M_Tools_T_Global)->setMenu(pMenuGlobal);
-    connect(m_pActionPool->action(UIActionIndexST_M_Tools_T_Global), &UIAction::toggled,
-            this, &UIToolbarTools::sltHandleActionToggle);
-
-    /* By default 'Machine' toggle action is toggled: */
-    m_pActionPool->action(UIActionIndexST_M_Tools_T_Machine)->setChecked(true);
 }
 
@@ -280,5 +275,4 @@
         if (m_pTabBarGlobal)
         {
-            /* Configure tab-bar connections: */
             connect(m_pTabBarGlobal, &UITabBar::sigTabRequestForClosing,
                     this, &UIToolbarTools::sltHandleCloseToolGlobal);
@@ -291,5 +285,5 @@
 
         /* Let the tab-bars know our opinion: */
-        sltHandleActionToggle();
-    }
-}
+        switchToTabBar(TabBarType_Machine);
+    }
+}
Index: /trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolbarTools.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolbarTools.h	(revision 73600)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolbarTools.h	(revision 73601)
@@ -57,7 +57,13 @@
 public:
 
+    /** Tab-bar types. */
+    enum TabBarType { TabBarType_Machine, TabBarType_Global };
+
     /** Constructs Tools toolbar passing @a pParent to the base-class.
       * @param  pActionPool  Brings the action-pool to take corresponding actions from. */
     UIToolbarTools(UIActionPool *pActionPool, QWidget *pParent = 0);
+
+    /** Switches to tab-bar of certain @a enmType. */
+    void switchToTabBar(TabBarType enmType);
 
     /** Defines whether Machine tab-bar is @a fEnabled. */
@@ -88,7 +94,4 @@
     void sltHandleToolChosenGlobal(const QUuid &uuid);
 
-    /** Handles action toggle. */
-    void sltHandleActionToggle();
-
 private:
 
