Changeset 78723 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
- Timestamp:
- May 24, 2019 12:26:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r78722 r78723 231 231 } 232 232 233 void UIMediumEnumerator::enumerateAdditionalMedium(const CMedium &comMedium) 234 { 235 /* Put the medium to vector for convenience: */ 236 CMediumVector inputMedia; 237 inputMedia << comMedium; 238 239 /* Compose new map of passed medium & it's children. 240 * While composing we are using data from already cached media. */ 241 UIMediumMap media; 242 addMediaToMap(inputMedia, media); 243 244 /* VBoxGlobal is cleaning up, abort immediately: */ 245 if (VBoxGlobal::isCleaningUp()) 246 return; 247 248 /* Throw the media to existing map: */ 249 foreach (const QUuid &uMediumId, media.keys()) 250 m_media[uMediumId] = media.value(uMediumId); 251 252 /* Start enumeration for media with non-NULL ID: */ 253 foreach (const QUuid &uMediumID, media.keys()) 254 if (!uMediumID.isNull()) 255 createMediumEnumerationTask(media[uMediumID]); 256 } 257 233 258 void UIMediumEnumerator::refreshMedia() 234 259 {
Note:
See TracChangeset
for help on using the changeset viewer.