VirtualBox

Changeset 49602 in vbox


Ignore:
Timestamp:
Nov 21, 2013 2:19:49 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90818
Message:

FE/Qt: 7112: *Hide* VM selector window instead of *closing* (which implicitly called for app quit) it on clicking window close (x) button?

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r49596 r49602  
    6666# include "UIWindowMenuManager.h"
    6767# include "UIImageTools.h"
     68# include "UICocoaApplication.h"
    6869#endif /* Q_WS_MAC */
    6970
     
    335336void UISelectorWindow::sltPerformExit()
    336337{
    337     close();
     338    QApplication::quit();
    338339}
    339340
     
    10561057
    10571058#ifdef Q_WS_MAC
     1059/** MacOS X host: Hides VM selector UI instead of closing. */
     1060void UISelectorWindow::closeEvent(QCloseEvent *pEvent)
     1061{
     1062    pEvent->ignore();
     1063    UICocoaApplication::instance()->hide();
     1064}
     1065
    10581066bool UISelectorWindow::eventFilter(QObject *pObject, QEvent *pEvent)
    10591067{
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h

    r49596 r49602  
    111111    void polishEvent(QShowEvent *pEvent);
    112112#ifdef Q_WS_MAC
     113    void closeEvent(QCloseEvent *pEvent);
    113114    bool eventFilter(QObject *pObject, QEvent *pEvent);
    114115#endif /* Q_WS_MAC */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette