vbox的更動 62339 路徑 trunk/src/VBox/Main
- 時間撮記:
- 2016-7-20 上午08:09:11 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/xml/Settings.cpp
r62298 r62339 2106 2106 */ 2107 2107 VRDESettings::VRDESettings() : 2108 fEnabled( false),2108 fEnabled(true), // default for old VMs, for new ones it's false 2109 2109 authType(AuthType_Null), 2110 2110 ulAuthTimeout(5000), … … 2117 2117 * Check if all settings have default values. 2118 2118 */ 2119 bool VRDESettings::areDefaultSettings( ) const2120 { 2121 return !fEnabled2119 bool VRDESettings::areDefaultSettings(SettingsVersion_T sv) const 2120 { 2121 return (sv < SettingsVersion_v1_16 ? fEnabled : !fEnabled) 2122 2122 && authType == AuthType_Null 2123 2123 && (ulAuthTimeout == 5000 || ulAuthTimeout == 0) … … 3086 3086 uFaultToleranceInterval(0), 3087 3087 fRTCUseUTC(false), 3088 strVMPriority( "")3088 strVMPriority() 3089 3089 { 3090 3090 llGroups.push_back("/"); … … 3721 3721 * Legacy. This needs to matched by areParavirtDefaultSettings(). */ 3722 3722 hw.paravirtProvider = ParavirtProvider_Default; 3723 /* The new default is disabled, before it was enabled by default. */ 3724 hw.vrdeSettings.fEnabled = false; 3723 3725 /* The new default is disabled, before it was enabled by default. */ 3724 3726 hw.audioAdapter.fEnabled = false; … … 5403 5405 } 5404 5406 5405 if (!hw.vrdeSettings.areDefaultSettings( ))5407 if (!hw.vrdeSettings.areDefaultSettings(m->sv)) 5406 5408 { 5407 5409 xml::ElementNode *pelmVRDE = pelmHardware->createChild("RemoteDisplay"); 5408 if ( hw.vrdeSettings.fEnabled)5410 if (m->sv < SettingsVersion_v1_16 ? !hw.vrdeSettings.fEnabled : hw.vrdeSettings.fEnabled) 5409 5411 pelmVRDE->setAttribute("enabled", hw.vrdeSettings.fEnabled); 5410 5412 if (m->sv < SettingsVersion_v1_11)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器