- Timestamp:
- Aug 29, 2018 12:23:45 PM (6 years ago)
- 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 214 214 if (vboxGlobal().agressiveCaching()) 215 215 { 216 AssertReturn( !m_pSession, false);216 AssertReturn(m_pSession, false); 217 217 vboxGlobal().startMediumEnumeration(m_pSession->getMachineMedia()); 218 218 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r73944 r73946 2122 2122 { 2123 2123 CMediumVector media; 2124 foreach (const CStorageController &co ntroller, m_machine.GetStorageControllers())2124 foreach (const CStorageController &comController, m_machine.GetStorageControllers()) 2125 2125 { 2126 2126 QString strAttData; 2127 2127 /* Enumerate all the attachments: */ 2128 foreach (const CMediumAttachment & attachment, m_machine.GetMediumAttachmentsOfController(controller.GetName()))2128 foreach (const CMediumAttachment &comAttachment, m_machine.GetMediumAttachmentsOfController(comController.GetName())) 2129 2129 { 2130 2130 /* 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) 2134 2134 continue; 2135 if ( attachment.GetIsEjected() || attachment.GetMedium().isNull())2135 if (comAttachment.GetIsEjected() || comAttachment.GetMedium().isNull()) 2136 2136 continue; 2137 media.append( attachment.GetMedium());2137 media.append(comAttachment.GetMedium()); 2138 2138 } 2139 2139 }
Note:
See TracChangeset
for help on using the changeset viewer.