VirtualBox

Changeset 35149 in vbox


Ignore:
Timestamp:
Dec 15, 2010 4:33:18 PM (14 years ago)
Author:
vboxsync
Message:

Main/settings: small correction for suppressing the default DVD/floppy medium types

File:
1 edited

Legend:

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

    r35146 r35149  
    10351035            mdm.hdType == MediumType_MultiAttach ? "MultiAttach" :
    10361036            "INVALID";
    1037         // no need to save the usual DVD medium types
    1038         if (devType != DeviceType_DVD || (   mdm.hdType != MediumType_Normal
    1039                                           && mdm.hdType != MediumType_Writethrough
    1040                                           && mdm.hdType != MediumType_Readonly))
     1037        // no need to save the usual DVD/floppy medium types
     1038        if (   (   devType != DeviceType_DVD
     1039                || (   mdm.hdType != MediumType_Writethrough // shouldn't happen
     1040                    && mdm.hdType != MediumType_Readonly))
     1041            && (   devType != DeviceType_Floppy
     1042                || mdm.hdType != MediumType_Writethrough))
    10411043            pelmMedium->setAttribute("type", pcszType);
    10421044    }
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