VirtualBox

Changeset 88664 in vbox


Ignore:
Timestamp:
Apr 22, 2021 6:34:11 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8161: A fix for regression caused by r143970 and r143971; Do not ask to save VM state in usual shutdown sequence, only in session manager logoff sequence.

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

Legend:

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

    r88657 r88664  
    45774577    LogRel(("GUI: UICommon: Handling aboutToQuit request..\n"));
    45784578
     4579    /// @todo Shouldn't that be protected with a mutex or something?
     4580    /* Remember that the cleanup is in progress preventing any unwanted
     4581     * stuff which could be called from the other threads: */
     4582    s_fCleaningUp = true;
     4583
    45794584#ifdef VBOX_WS_WIN
    45804585    /* Ask listeners to commit data if haven't yet: */
     
    45884593    emit sigAskToCommitData();
    45894594#endif
    4590 
    4591     /// @todo Shouldn't that be protected with a mutex or something?
    4592     /* Remember that the cleanup is in progress preventing any unwanted
    4593      * stuff which could be called from the other threads: */
    4594     s_fCleaningUp = true;
    45954595
    45964596#ifdef VBOX_WITH_DEBUGGER_GUI
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIStarter.cpp

    r88657 r88664  
    167167
    168168#ifdef VBOX_RUNTIME_UI
    169     gpMachine->uisession()->saveState();
     169    /* Only for the case when we have this request
     170     * earlier than the usual cleanup started: */
     171    if (!UICommon::isCleaningUp())
     172        gpMachine->uisession()->saveState();
    170173#endif
    171174}
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