VirtualBox

Ignore:
Timestamp:
Oct 8, 2019 11:44:13 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133780
Message:

FE/Qt: bugref:9582: VM settings / Storage page: Do not change controller type if bus change failed/discarded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r81105 r81146  
    37513751            else if (pSender == mCbType)
    37523752            {
    3753                 m_pModelStorage->setData(index,
    3754                                          QVariant::fromValue(mCbType->currentData(StorageModel::R_CtrBusType).value<KStorageBus>()),
    3755                                          StorageModel::R_CtrBusType);
    3756                 m_pModelStorage->setData(index,
    3757                                          QVariant::fromValue(mCbType->currentData(StorageModel::R_CtrType).value<KStorageControllerType>()),
    3758                                          StorageModel::R_CtrType);
     3753                const bool fResult =
     3754                    m_pModelStorage->setData(index,
     3755                                             QVariant::fromValue(mCbType->currentData(StorageModel::R_CtrBusType).value<KStorageBus>()),
     3756                                             StorageModel::R_CtrBusType);
     3757                if (fResult)
     3758                    m_pModelStorage->setData(index,
     3759                                             QVariant::fromValue(mCbType->currentData(StorageModel::R_CtrType).value<KStorageControllerType>()),
     3760                                             StorageModel::R_CtrType);
    37593761            }
    37603762            else if (pSender == mSbPortCount)
Note: See TracChangeset for help on using the changeset viewer.

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