VirtualBox

Changeset 59910 in vbox


Ignore:
Timestamp:
Mar 3, 2016 4:03:08 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8200: Runtime UI: Stability fix for PowerUp procedure: Make sure application early knows that it should not go away if all windows closed.

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

Legend:

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

    r59493 r59910  
    519519                break;
    520520
     521            /* For Runtime UI: */
     522            if (vboxGlobal().isVMConsoleProcess())
     523            {
     524                /* Prevent application from exiting when all window(s) closed: */
     525                qApp->setQuitOnLastWindowClosed(false);
     526            }
     527
    521528            /* Request to Show UI _after_ QApplication started: */
    522529            QMetaObject::invokeMethod(&vboxGlobal(), "showUI", Qt::QueuedConnection);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp

    r59887 r59910  
    201201        return false;
    202202
    203     /* Prevent application from closing when all window(s) closed: */
    204     qApp->setQuitOnLastWindowClosed(false);
    205 
    206203    /* Cache medium data early if necessary: */
    207204    if (vboxGlobal().agressiveCaching())
Note: See TracChangeset for help on using the changeset viewer.

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