VirtualBox

Changeset 98581 in vbox


Ignore:
Timestamp:
Feb 15, 2023 10:52:34 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155867
Message:

FE/Qt: bugref:10322: Runtime UI: Do not reset manual override state unless necessary.

File:
1 edited

Legend:

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

    r98557 r98581  
    10171017void UIMachine::sltHandleMachineStateSaved(bool fSuccess)
    10181018{
    1019     /* Disable 'manual-override' finally: */
    1020     setManualOverrideMode(false);
    1021 
    1022     /* Close Runtime UI if state was saved: */
    1023     if (fSuccess)
     1019    /* Let user try again if saving failed: */
     1020    if (!fSuccess)
     1021    {
     1022        /* Disable 'manual-override' finally: */
     1023        setManualOverrideMode(false);
     1024    }
     1025    /* Close Runtime UI otherwise: */
     1026    else
    10241027        closeRuntimeUI();
    10251028}
     
    10271030void UIMachine::sltHandleMachinePoweredOff(bool fSuccess, bool fIncludingDiscard)
    10281031{
    1029     /* Disable 'manual-override' finally: */
    1030     setManualOverrideMode(false);
    1031 
    1032     /* Do we have other tasks? */
    1033     if (fSuccess)
     1032    /* Let user try again if power off failed: */
     1033    if (!fSuccess)
     1034    {
     1035        /* Disable 'manual-override' finally: */
     1036        setManualOverrideMode(false);
     1037    }
     1038    /* Check for other tasks otherwise: */
     1039    else
    10341040    {
    10351041        if (fIncludingDiscard)
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