VirtualBox

Changeset 78627 in vbox


Ignore:
Timestamp:
May 21, 2019 11:12:46 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130695
Message:

FE/Qt: bugref:6248: Reusing some of old code to do more strict check for attachment adding possibility.

File:
1 edited

Legend:

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

    r78598 r78627  
    36663666        return;
    36673667    /* Also make sure there is enough place for new attachment: */
    3668     const KStorageBus enmBus = pItemController->ctrBusType();
    3669     const int uMaxPortCount = vboxGlobal().virtualBox().GetSystemProperties().GetMaxPortCountForStorageBus(enmBus);
    3670     const int uMaxDevicePerPortCount = vboxGlobal().virtualBox().GetSystemProperties().GetMaxDevicesPerPortForStorageBus(enmBus);
    3671     const SlotsList usedSlots = pItemController->ctrUsedSlots();
    3672     if (usedSlots.size() >= uMaxPortCount * uMaxDevicePerPortCount)
     3668    const bool fIsMoreAttachmentsPossible = m_pModelStorage->data(index, StorageModel::R_IsMoreAttachmentsPossible).toBool();
     3669    if (!fIsMoreAttachmentsPossible)
    36733670        return;
    36743671
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