VirtualBox

Changeset 16728 in vbox


Ignore:
Timestamp:
Feb 13, 2009 8:34:20 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4-OVF: Editable items are explicit selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxImportAppliance.cpp

    r16715 r16728  
    366366                flags |= Qt::ItemIsUserCheckable;
    367367            /* Some items are editable */
    368             if (mType != KVirtualSystemDescriptionType_CPU && /* CPU not editable for now */
    369                 mType != KVirtualSystemDescriptionType_Floppy && /* The following items didn't have any associated data to edit */
    370                 mType != KVirtualSystemDescriptionType_CDROM &&
    371                 mType != KVirtualSystemDescriptionType_USBController &&
     368            if ((mType == KVirtualSystemDescriptionType_Name ||
     369                 mType == KVirtualSystemDescriptionType_OS ||
     370                 mType == KVirtualSystemDescriptionType_Memory ||
     371                 mType == KVirtualSystemDescriptionType_SoundCard ||
     372                 mType == KVirtualSystemDescriptionType_NetworkAdapter ||
     373                 mType == KVirtualSystemDescriptionType_HardDiskControllerIDE ||
     374                 mType == KVirtualSystemDescriptionType_HardDiskImage) &&
    372375                mCheckState == Qt::Checked) /* Item has to be enabled */
    373376                flags |= Qt::ItemIsEditable;
     
    742745        }
    743746
    744     return false;
     747    return true;
    745748}
    746749
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