- Timestamp:
- Jan 15, 2014 12:45:30 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91601
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r49705 r50081 66 66 # include "UIWindowMenuManager.h" 67 67 # include "UIImageTools.h" 68 # include "UICocoaApplication.h"69 68 #endif /* Q_WS_MAC */ 70 69 … … 336 335 void UISelectorWindow::sltPerformExit() 337 336 { 338 QApplication::quit();337 close(); 339 338 } 340 339 … … 1057 1056 1058 1057 #ifdef Q_WS_MAC 1059 /** MacOS X host: Hides VM selector UI instead of closing. */1060 void UISelectorWindow::closeEvent(QCloseEvent *pEvent)1061 {1062 pEvent->ignore();1063 UICocoaApplication::instance()->hide();1064 }1065 1066 1058 bool UISelectorWindow::eventFilter(QObject *pObject, QEvent *pEvent) 1067 1059 { 1068 /* If we got broadcast qApp close-event, quit app.. */1069 if (pObject == qApp && pEvent->type() == QEvent::Close)1070 return true;1071 1072 1060 /* Ignore for non-active window: */ 1073 1061 if (!isActiveWindow()) -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r49602 r50081 111 111 void polishEvent(QShowEvent *pEvent); 112 112 #ifdef Q_WS_MAC 113 void closeEvent(QCloseEvent *pEvent);114 113 bool eventFilter(QObject *pObject, QEvent *pEvent); 115 114 #endif /* Q_WS_MAC */
Note:
See TracChangeset
for help on using the changeset viewer.