VirtualBox

Changeset 43132 in vbox


Ignore:
Timestamp:
Aug 31, 2012 11:36:34 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80501
Message:

FE/Qt: 6346: Fixing bug with runtime storage-settings fetch.

File:
1 edited

Legend:

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

    r42017 r43132  
    19251925            storageControllerData.m_fUseHostIOCache = controller.GetUseHostIOCache();
    19261926
     1927            /* Sort attachments before caching/fetching: */
     1928            const CMediumAttachmentVector &attachmentVector =
     1929                    m_machine.GetMediumAttachmentsOfController(storageControllerData.m_strControllerName);
     1930            QMap<StorageSlot, CMediumAttachment> attachmentMap;
     1931            foreach (const CMediumAttachment &attachment, attachmentVector)
     1932            {
     1933                StorageSlot storageSlot(storageControllerData.m_controllerBus,
     1934                                        attachment.GetPort(), attachment.GetDevice());
     1935                attachmentMap.insert(storageSlot, attachment);
     1936            }
     1937            const QList<CMediumAttachment> &attachments = attachmentMap.values();
     1938
    19271939            /* For each attachment: */
    1928             const CMediumAttachmentVector &attachments = m_machine.GetMediumAttachmentsOfController(storageControllerData.m_strControllerName);
    19291940            for (int iAttachmentIndex = 0; iAttachmentIndex < attachments.size(); ++iAttachmentIndex)
    19301941            {
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