VirtualBox

Ignore:
Timestamp:
Mar 16, 2009 7:08:16 PM (16 years ago)
Author:
vboxsync
Message:

API/HardDisk, Storage/VBoxHDD, Frontend/VBoxManage: eliminated base image type, which led to much unnecessary code duplication. Was triggered by VBoxManage finally being able to create all image variants the backends can support.

File:
1 edited

Legend:

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

    r17825 r17970  
    375375bool VBoxNewHDWzd::createHardDisk()
    376376{
     377    KHardDiskVariant variant = KHardDiskVariant_Standard;
    377378    QString loc = location();
    378379
     
    393394    }
    394395
    395     if (isDynamicStorage())
    396         progress = hd.CreateDynamicStorage (mCurrentSize, KHardDiskVariant_Standard);
    397     else
    398         progress = hd.CreateFixedStorage (mCurrentSize, KHardDiskVariant_Standard);
     396    if (!isDynamicStorage())
     397        variant = (KHardDiskVariant)(KHardDiskVariant_Standard | KHardDiskVariant_Fixed);
     398
     399    progress = hd.CreateBaseStorage (mCurrentSize, variant);
    399400
    400401    if (!hd.isOk())
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