Index: /trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp	(revision 49601)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp	(revision 49602)
@@ -66,4 +66,5 @@
 # include "UIWindowMenuManager.h"
 # include "UIImageTools.h"
+# include "UICocoaApplication.h"
 #endif /* Q_WS_MAC */
 
@@ -335,5 +336,5 @@
 void UISelectorWindow::sltPerformExit()
 {
-    close();
+    QApplication::quit();
 }
 
@@ -1056,4 +1057,11 @@
 
 #ifdef Q_WS_MAC
+/** MacOS X host: Hides VM selector UI instead of closing. */
+void UISelectorWindow::closeEvent(QCloseEvent *pEvent)
+{
+    pEvent->ignore();
+    UICocoaApplication::instance()->hide();
+}
+
 bool UISelectorWindow::eventFilter(QObject *pObject, QEvent *pEvent)
 {
Index: /trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h	(revision 49601)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h	(revision 49602)
@@ -111,4 +111,5 @@
     void polishEvent(QShowEvent *pEvent);
 #ifdef Q_WS_MAC
+    void closeEvent(QCloseEvent *pEvent);
     bool eventFilter(QObject *pObject, QEvent *pEvent);
 #endif /* Q_WS_MAC */
