VirtualBox

Changeset 58894 in vbox


Ignore:
Timestamp:
Nov 27, 2015 9:31:50 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: ​bugref:6478: Runtime UI: Machine View: UI Session: Do not update guest-screen when VM is in stopping state.

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

Legend:

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

    r58860 r58894  
    266266        return;
    267267
     268    if (uisession()->isGuestScreenUnDrawable())
     269        return;
     270
    268271    /* If machine-window is visible: */
    269272    if (uisession()->isScreenVisible(m_uScreenId))
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r57874 r58894  
    230230    QSize lastFullScreenSize(ulong uScreenId) const;
    231231    void setLastFullScreenSize(ulong uScreenId, QSize size);
     232
     233    /** Returns whether guest-screen is undrawable.
     234     *  @todo: extend this method to all the states when guest-screen is undrawable. */
     235    bool isGuestScreenUnDrawable() const { return machineState() == KMachineState_Stopping; }
    232236
    233237    /* Returns existing framebuffer for the given screen-number;
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