VirtualBox

Changeset 50042 in vbox


Ignore:
Timestamp:
Jan 9, 2014 4:25:41 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: 7118: Make sure corresponding Devices menu action (VRDE Server) is disabled if extension-pack is not installed/usable.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

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

    r49698 r50042  
    473473    {
    474474        pMenu->addAction(gActionPool->action(UIActionIndexRuntime_Toggle_VRDEServer));
     475        if (!m_pSession->isExtensionPackUsable())
     476            gActionPool->action(UIActionIndexRuntime_Toggle_VRDEServer)->setEnabled(false);
    475477        fSeparator2 = true;
    476478    }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r49698 r50042  
    7777#include "CSnapshot.h"
    7878#include "CMedium.h"
     79#include "CExtPack.h"
     80#include "CExtPackManager.h"
    7981
    8082#ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER
     
    128130    , m_machineStatePrevious(KMachineState_Null)
    129131    , m_machineState(session().GetMachine().GetState())
     132    , m_fIsExtensionPackUsable(false)
    130133    , m_requestedVisualStateType(UIVisualStateType_Invalid)
    131134#ifdef Q_WS_WIN
     
    11071110    /* Load extra-data settings: */
    11081111    {
     1112        /* Extension pack stuff: */
     1113        CExtPack extPack = vboxGlobal().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName);
     1114        m_fIsExtensionPackUsable = !extPack.isNull() && extPack.GetUsable();
     1115
    11091116        /* Runtime menu settings: */
    11101117#ifdef Q_WS_MAC
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r49698 r50042  
    9494    QCursor cursor() const { return m_cursor; }
    9595
     96    /** @name Extension Pack stuff.
     97     ** @{ */
     98    /** Determines whether extension pack installed and usable. */
     99    bool isExtensionPackUsable() const { return m_fIsExtensionPackUsable; }
     100    /** @} */
     101
    96102    /** @name Runtime menus configuration stuff.
    97103     ** @{ */
     
    333339    QCursor m_cursor;
    334340
     341    /** @name Extension Pack variables.
     342     ** @{ */
     343    /** Determines whether extension pack installed and usable. */
     344    bool m_fIsExtensionPackUsable;
     345    /** @} */
     346
    335347    /** @name Runtime menus configuration variables.
    336348     ** @{ */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r49989 r50042  
    399399                                 "Please install the Extension Pack from the VirtualBox download site as "
    400400                                 "otherwise your VM will be started with Remote Display disabled.")
    401                                 .arg(GUI_ExtPackName);
     401                                 .arg(GUI_ExtPackName);
    402402        }
    403 #endif
     403#endif VBOX_WITH_EXTPACK
    404404
    405405        /* Check VRDE server port: */
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