VirtualBox

Changeset 12118

Show
Ignore:
Timestamp:
09/05/08 10:18:54 (3 months ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: Enable sheets on all other windows than ConsoleWnd? again.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Frontends/VirtualBox4/src/QIMessageBox.cpp

    r12097 r12118  
    5757     * normal window in that case. */ 
    5858    VBoxConsoleWnd *cwnd = qobject_cast<VBoxConsoleWnd*> (aParent); 
    59     if (cwnd != NULL && 
    60         !cwnd->isTrueFullscreen() && 
    61         !cwnd->isTrueSeamless()) 
     59    if (cwnd == NULL || 
     60        (!cwnd->isTrueFullscreen() && 
     61        !cwnd->isTrueSeamless())) 
    6262        setWindowFlags (windowFlags() | Qt::Sheet); 
    6363#endif /* Q_WS_MAC */ 
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxCloseVMDlg.cpp

    r12097 r12118  
    3737     * normal window in that case. */ 
    3838    VBoxConsoleWnd *cwnd = qobject_cast<VBoxConsoleWnd*> (aParent); 
    39     if (cwnd != NULL && 
    40         !cwnd->isTrueFullscreen() && 
    41         !cwnd->isTrueSeamless()) 
     39    if (cwnd == NULL || 
     40        (!cwnd->isTrueFullscreen() && 
     41        !cwnd->isTrueSeamless())) 
    4242        setWindowFlags (Qt::Sheet); 
    4343#endif /* Q_WS_MAC */ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy