VirtualBox

Changeset 84499 in vbox for trunk/src


Ignore:
Timestamp:
May 25, 2020 1:05:38 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Workaround for GUI frozen while saving VM state, do not make attempt to take screen-shot while we are in saving progress.

File:
1 edited

Legend:

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

    r82968 r84499  
    576576                    || m_previousState != KMachineState_Teleporting))
    577577            {
    578                 /* Take live pause-pixmap: */
    579                 takePausePixmapLive();
    580                 /* Fully repaint to pick up pause-pixmap: */
    581                 viewport()->update();
     578                // WORKAROUND:
     579                // We can't take pause pixmap if actual state is Saving, this produces
     580                // a lock and GUI will be frozen until SaveState call is complete...
     581                const KMachineState enmActualState = machine().GetState();
     582                if (enmActualState != KMachineState_Saving)
     583                {
     584                    /* Take live pause-pixmap: */
     585                    takePausePixmapLive();
     586                    /* Fully repaint to pick up pause-pixmap: */
     587                    viewport()->update();
     588                }
    582589            }
    583590            break;
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