VirtualBox

Changeset 35119 in vbox


Ignore:
Timestamp:
Dec 15, 2010 11:01:36 AM (14 years ago)
Author:
vboxsync
Message:

Main/settings: Do not write the "type" attribute for DVD images. Causes unnecessary config file bloat with no extra information. All VirtualBox versions ignore that attribute when reading the config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r35074 r35119  
    10421042            mdm.hdType == MediumType_MultiAttach ? "MultiAttach" :
    10431043            "INVALID";
    1044         pelmMedium->setAttribute("type", pcszType);
     1044        // no need to save the usual DVD medium types
     1045        if (devType != DeviceType_DVD || (   mdm.hdType != MediumType_Normal
     1046                                          && mdm.hdType != MediumType_Readonly))
     1047            pelmMedium->setAttribute("type", pcszType);
    10451048    }
    10461049
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