VirtualBox

Changeset 73946 in vbox for trunk


Ignore:
Timestamp:
Aug 29, 2018 12:23:45 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8472. Fix for r124671.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r73944 r73946  
    214214    if (vboxGlobal().agressiveCaching())
    215215    {
    216         AssertReturn(!m_pSession, false);
     216        AssertReturn(m_pSession, false);
    217217        vboxGlobal().startMediumEnumeration(m_pSession->getMachineMedia());
    218218    }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r73944 r73946  
    21222122{
    21232123    CMediumVector media;
    2124     foreach (const CStorageController &controller, m_machine.GetStorageControllers())
     2124    foreach (const CStorageController &comController, m_machine.GetStorageControllers())
    21252125    {
    21262126        QString strAttData;
    21272127        /* Enumerate all the attachments: */
    2128         foreach (const CMediumAttachment &attachment, m_machine.GetMediumAttachmentsOfController(controller.GetName()))
     2128        foreach (const CMediumAttachment &comAttachment, m_machine.GetMediumAttachmentsOfController(comController.GetName()))
    21292129        {
    21302130            /* Skip unrelated attachments: */
    2131             if (attachment.GetType() != KDeviceType_HardDisk &&
    2132                 attachment.GetType() != KDeviceType_Floppy &&
    2133                 attachment.GetType() != KDeviceType_DVD)
     2131            if (comAttachment.GetType() != KDeviceType_HardDisk &&
     2132                comAttachment.GetType() != KDeviceType_Floppy &&
     2133                comAttachment.GetType() != KDeviceType_DVD)
    21342134                continue;
    2135             if (attachment.GetIsEjected() || attachment.GetMedium().isNull())
     2135            if (comAttachment.GetIsEjected() || comAttachment.GetMedium().isNull())
    21362136                continue;
    2137             media.append(attachment.GetMedium());
     2137            media.append(comAttachment.GetMedium());
    21382138        }
    21392139    }
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