Changeset 100635 in vbox
- Timestamp:
- Jul 18, 2023 3:17:36 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r98103 r100635 399 399 400 400 /* Check whether remote display server is valid: */ 401 const CVRDEServer &vrdeServer = m_machine.GetVRDEServer(); 402 oldDisplayData.m_fRemoteDisplayServerSupported = !vrdeServer.isNull(); 403 if (!vrdeServer.isNull()) 401 CExtPackManager comExtPackManager = uiCommon().virtualBox().GetExtensionPackManager(); 402 const bool fExtPackPresent = comExtPackManager.isNotNull() && comExtPackManager.IsExtPackUsable(GUI_ExtPackName); 403 CVRDEServer comVrdeServer = m_machine.GetVRDEServer(); 404 const bool fServerExists = m_machine.isOk() && comVrdeServer.isNotNull(); 405 oldDisplayData.m_fRemoteDisplayServerSupported = fExtPackPresent && fServerExists; 406 if (oldDisplayData.m_fRemoteDisplayServerSupported) 404 407 { 405 408 /* Gather old 'Remote Display' data: */ 406 oldDisplayData.m_fRemoteDisplayServerEnabled = vrdeServer.GetEnabled();407 oldDisplayData.m_strRemoteDisplayPort = vrdeServer.GetVRDEProperty("TCP/Ports");408 oldDisplayData.m_remoteDisplayAuthType = vrdeServer.GetAuthType();409 oldDisplayData.m_uRemoteDisplayTimeout = vrdeServer.GetAuthTimeout();410 oldDisplayData.m_fRemoteDisplayMultiConnAllowed = vrdeServer.GetAllowMultiConnection();409 oldDisplayData.m_fRemoteDisplayServerEnabled = comVrdeServer.GetEnabled(); 410 oldDisplayData.m_strRemoteDisplayPort = comVrdeServer.GetVRDEProperty("TCP/Ports"); 411 oldDisplayData.m_remoteDisplayAuthType = comVrdeServer.GetAuthType(); 412 oldDisplayData.m_uRemoteDisplayTimeout = comVrdeServer.GetAuthTimeout(); 413 oldDisplayData.m_fRemoteDisplayMultiConnAllowed = comVrdeServer.GetAllowMultiConnection(); 411 414 } 412 415 … … 687 690 688 691 /* Remote Display tab: */ 692 if (m_pTabWidget->isTabEnabled(1)) 689 693 { 690 694 /* Prepare message: */ … … 1127 1131 /* Get new data from cache: */ 1128 1132 const UIDataSettingsMachineDisplay &newDisplayData = m_pCache->data(); 1133 1134 /* Do not save anything if server isn't supported: */ 1135 if ( !oldDisplayData.m_fRemoteDisplayServerSupported 1136 || !newDisplayData.m_fRemoteDisplayServerSupported) 1137 return fSuccess; 1129 1138 1130 1139 /* Get remote display server for further activities: */
Note:
See TracChangeset
for help on using the changeset viewer.