VirtualBox

Changeset 87533 in vbox


Ignore:
Timestamp:
Feb 2, 2021 12:02:29 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9927: VM settings / Storage page: While changing a set of bus/type simultaneously we need to assign initial set together instead of acquiring type value after bus changed, else values could be desynchronized.

File:
1 edited

Legend:

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

    r86233 r87533  
    38723872            else if (pSender == m_pComboType)
    38733873            {
     3874                const KStorageBus enmBus = m_pComboType->currentData(StorageModel::R_CtrBusType).value<KStorageBus>();
     3875                const KStorageControllerType enmType = m_pComboType->currentData(StorageModel::R_CtrType).value<KStorageControllerType>();
    38743876                const bool fResult =
    3875                     m_pModelStorage->setData(index,
    3876                                              QVariant::fromValue(m_pComboType->currentData(StorageModel::R_CtrBusType).value<KStorageBus>()),
    3877                                              StorageModel::R_CtrBusType);
     3877                    m_pModelStorage->setData(index, QVariant::fromValue(enmBus), StorageModel::R_CtrBusType);
    38783878                if (fResult)
    3879                     m_pModelStorage->setData(index,
    3880                                              QVariant::fromValue(m_pComboType->currentData(StorageModel::R_CtrType).value<KStorageControllerType>()),
    3881                                              StorageModel::R_CtrType);
     3879                    m_pModelStorage->setData(index, QVariant::fromValue(enmType), StorageModel::R_CtrType);
    38823880            }
    38833881            else if (pSender == m_pSpinboxPortCount)
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