VirtualBox

vbox的更動 62339 路徑 trunk/src/VBox/Main


忽略:
時間撮記:
2016-7-20 上午08:09:11 (8 年 以前)
作者:
vboxsync
訊息:

Main/xml/Settings.cpp: fix last remaining (pretty harmless) default settings difference for old VM configs (5.0 or older)

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/xml/Settings.cpp

    r62298 r62339  
    21062106 */
    21072107VRDESettings::VRDESettings() :
    2108     fEnabled(false),
     2108    fEnabled(true), // default for old VMs, for new ones it's false
    21092109    authType(AuthType_Null),
    21102110    ulAuthTimeout(5000),
     
    21172117 * Check if all settings have default values.
    21182118 */
    2119 bool VRDESettings::areDefaultSettings() const
    2120 {
    2121     return !fEnabled
     2119bool VRDESettings::areDefaultSettings(SettingsVersion_T sv) const
     2120{
     2121    return (sv < SettingsVersion_v1_16 ? fEnabled : !fEnabled)
    21222122        && authType == AuthType_Null
    21232123        && (ulAuthTimeout == 5000 || ulAuthTimeout == 0)
     
    30863086    uFaultToleranceInterval(0),
    30873087    fRTCUseUTC(false),
    3088     strVMPriority("")
     3088    strVMPriority()
    30893089{
    30903090    llGroups.push_back("/");
     
    37213721         * Legacy. This needs to matched by areParavirtDefaultSettings(). */
    37223722        hw.paravirtProvider = ParavirtProvider_Default;
     3723        /* The new default is disabled, before it was enabled by default. */
     3724        hw.vrdeSettings.fEnabled = false;
    37233725        /* The new default is disabled, before it was enabled by default. */
    37243726        hw.audioAdapter.fEnabled = false;
     
    54035405    }
    54045406
    5405     if (!hw.vrdeSettings.areDefaultSettings())
     5407    if (!hw.vrdeSettings.areDefaultSettings(m->sv))
    54065408    {
    54075409        xml::ElementNode *pelmVRDE = pelmHardware->createChild("RemoteDisplay");
    5408         if (hw.vrdeSettings.fEnabled)
     5410        if (m->sv < SettingsVersion_v1_16 ? !hw.vrdeSettings.fEnabled : hw.vrdeSettings.fEnabled)
    54095411            pelmVRDE->setAttribute("enabled", hw.vrdeSettings.fEnabled);
    54105412        if (m->sv < SettingsVersion_v1_11)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette