VirtualBox

Changeset 59155 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 16, 2015 3:12:59 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6478: Runtime UI: UI Session: Caching CPU hardware virtualization flag in GUI.

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

Legend:

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

    r59079 r59155  
    224224    }
    225225    machineLogic()->initializePostPowerUp();
     226
     227    /* Load VM settings: */
     228    loadVMSettings();
    226229
    227230#ifdef VBOX_WITH_VIDEOHWACCEL
     
    951954    , m_fIsValidPointerShapePresent(false)
    952955    , m_fIsHidingHostPointer(true)
     956    /* VM settings flags: */
     957    , m_fIsHWVirtExEnabled(false)
    953958{
    954959}
     
    19391944}
    19401945
     1946void UISession::loadVMSettings()
     1947{
     1948    /* Load VM settings: */
     1949    /* CPU hardware virtualization extensions: */
     1950    m_fIsHWVirtExEnabled = m_debugger.GetHWVirtExEnabled();
     1951}
     1952
    19411953UIFrameBuffer* UISession::frameBuffer(ulong uScreenId) const
    19421954{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r59079 r59155  
    253253    /** Updates Video Capture action state. */
    254254    void updateStatusVideoCapture() { sltVideoCaptureChange(); }
     255
     256    /** Returns whether HW virtualization extension is enabled. */
     257    bool isHWVirtExEnabled() const { return m_fIsHWVirtExEnabled; }
    255258
    256259signals:
     
    386389    bool postprocessInitialization();
    387390    int countOfVisibleWindows();
     391    /** Loads VM settings. */
     392    void loadVMSettings();
    388393
    389394    /** Update host-screen data. */
     
    513518    bool m_fIsHidingHostPointer : 1;
    514519
     520    /** Holds whether HW virtualization extension is enabled. */
     521    bool m_fIsHWVirtExEnabled;
     522
    515523    /* Friend classes: */
    516524    friend class UIConsoleEventHandler;
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