Changeset 50042 in vbox
- Timestamp:
- Jan 9, 2014 4:25:41 PM (11 years ago)
- 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 473 473 { 474 474 pMenu->addAction(gActionPool->action(UIActionIndexRuntime_Toggle_VRDEServer)); 475 if (!m_pSession->isExtensionPackUsable()) 476 gActionPool->action(UIActionIndexRuntime_Toggle_VRDEServer)->setEnabled(false); 475 477 fSeparator2 = true; 476 478 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r49698 r50042 77 77 #include "CSnapshot.h" 78 78 #include "CMedium.h" 79 #include "CExtPack.h" 80 #include "CExtPackManager.h" 79 81 80 82 #ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER … … 128 130 , m_machineStatePrevious(KMachineState_Null) 129 131 , m_machineState(session().GetMachine().GetState()) 132 , m_fIsExtensionPackUsable(false) 130 133 , m_requestedVisualStateType(UIVisualStateType_Invalid) 131 134 #ifdef Q_WS_WIN … … 1107 1110 /* Load extra-data settings: */ 1108 1111 { 1112 /* Extension pack stuff: */ 1113 CExtPack extPack = vboxGlobal().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName); 1114 m_fIsExtensionPackUsable = !extPack.isNull() && extPack.GetUsable(); 1115 1109 1116 /* Runtime menu settings: */ 1110 1117 #ifdef Q_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r49698 r50042 94 94 QCursor cursor() const { return m_cursor; } 95 95 96 /** @name Extension Pack stuff. 97 ** @{ */ 98 /** Determines whether extension pack installed and usable. */ 99 bool isExtensionPackUsable() const { return m_fIsExtensionPackUsable; } 100 /** @} */ 101 96 102 /** @name Runtime menus configuration stuff. 97 103 ** @{ */ … … 333 339 QCursor m_cursor; 334 340 341 /** @name Extension Pack variables. 342 ** @{ */ 343 /** Determines whether extension pack installed and usable. */ 344 bool m_fIsExtensionPackUsable; 345 /** @} */ 346 335 347 /** @name Runtime menus configuration variables. 336 348 ** @{ */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r49989 r50042 399 399 "Please install the Extension Pack from the VirtualBox download site as " 400 400 "otherwise your VM will be started with Remote Display disabled.") 401 .arg(GUI_ExtPackName);401 .arg(GUI_ExtPackName); 402 402 } 403 #endif 403 #endif VBOX_WITH_EXTPACK 404 404 405 405 /* Check VRDE server port: */
Note:
See TracChangeset
for help on using the changeset viewer.