Changeset 24420 in vbox for trunk/src/VBox
- Timestamp:
- Nov 5, 2009 11:57:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsHD.cpp
r24419 r24420 484 484 if (medium.isNull() || medium.medium().GetDeviceType() == deviceType) 485 485 { 486 /* In 'don't show diffs' mode we should filter out all the mediums 487 * which are already attached to some snapshot of current VM. */ 486 /* In 'don't show diffs' mode we should only show hard-disks which are: 487 * 1. Attached to 'current state' of this VM even if these are differencing disks. 488 * 2. Not attached to this VM at all only if they are not differencing disks. */ 488 489 if (!aShowDiffs && medium.type() == VBoxDefs::MediumType_HardDisk) 489 490 { 490 if ( !medium.medium().GetMachineIds().contains(parent()->machineId()) ||491 medium.isAttachedInCurStateTo (parent()->machineId()))491 if (medium.isAttachedInCurStateTo (parent()->machineId()) || 492 (!medium.medium().GetMachineIds().contains (parent()->machineId()) && !medium.parent())) 492 493 allMediums << medium.id(); 493 494 }
Note:
See TracChangeset
for help on using the changeset viewer.