Index: /trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp	(revision 68220)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp	(revision 68221)
@@ -258,10 +258,14 @@
     if (pItem && pItem->accessible())
     {
-        /* Make sure Machine Tools-pane raised: */
-        if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details))
-            m_pPaneToolsMachine->openTool(ToolTypeMachine_Details);
-        else
-        if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Snapshots))
-            m_pPaneToolsMachine->openTool(ToolTypeMachine_Snapshots);
+        /* If Desktop pane is chosen currently: */
+        if (m_pPaneToolsMachine->currentTool() == ToolTypeMachine_Desktop)
+        {
+            /* Make sure Details or Snapshot pane is chosen if opened: */
+            if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details))
+                m_pPaneToolsMachine->openTool(ToolTypeMachine_Details);
+            else
+            if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Snapshots))
+                m_pPaneToolsMachine->openTool(ToolTypeMachine_Snapshots);
+        }
 
         /* Refresh Machine Tools-pane if requested: */
Index: /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneGlobal.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneGlobal.cpp	(revision 68220)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneGlobal.cpp	(revision 68221)
@@ -52,4 +52,9 @@
     /* Cleanup: */
     cleanup();
+}
+
+ToolTypeGlobal UIToolsPaneGlobal::currentTool() const
+{
+    return m_pLayout->currentWidget()->property("ToolType").value<ToolTypeGlobal>();
 }
 
Index: /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneGlobal.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneGlobal.h	(revision 68220)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneGlobal.h	(revision 68221)
@@ -59,4 +59,6 @@
     virtual ~UIToolsPaneGlobal() /* override */;
 
+    /** Returns type of tool currently opened. */
+    ToolTypeGlobal currentTool() const;
     /** Returns whether tool of particular @a enmType is opened. */
     bool isToolOpened(ToolTypeGlobal enmType) const;
Index: /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneMachine.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneMachine.cpp	(revision 68220)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneMachine.cpp	(revision 68221)
@@ -52,4 +52,9 @@
     /* Cleanup: */
     cleanup();
+}
+
+ToolTypeMachine UIToolsPaneMachine::currentTool() const
+{
+    return m_pLayout->currentWidget()->property("ToolType").value<ToolTypeMachine>();
 }
 
Index: /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneMachine.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneMachine.h	(revision 68220)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneMachine.h	(revision 68221)
@@ -70,4 +70,6 @@
     virtual ~UIToolsPaneMachine() /* override */;
 
+    /** Returns type of tool currently opened. */
+    ToolTypeMachine currentTool() const;
     /** Returns whether tool of particular @a enmType is opened. */
     bool isToolOpened(ToolTypeMachine enmType) const;
