Changeset 85821 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 18, 2020 2:04:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r85489 r85821 3131 3131 /* Make sure recent-medium usage is unique: */ 3132 3132 bool fIsRecentMediumUsed = false; 3133 foreach (const CMediumAttachment &otherAttachment, comAttachments) 3134 { 3135 if (otherAttachment != comCurrentAttachment) 3133 if (enmMediumType != UIMediumDeviceType_DVD) 3134 foreach (const CMediumAttachment &otherAttachment, comAttachments) 3136 3135 { 3137 const CMedium &comOtherMedium = otherAttachment.GetMedium(); 3138 if (!comOtherMedium.isNull() && comOtherMedium.GetLocation() == strRecentMediumLocation) 3136 if (otherAttachment != comCurrentAttachment) 3139 3137 { 3140 fIsRecentMediumUsed = true; 3141 break; 3138 const CMedium &comOtherMedium = otherAttachment.GetMedium(); 3139 if (!comOtherMedium.isNull() && comOtherMedium.GetLocation() == strRecentMediumLocation) 3140 { 3141 fIsRecentMediumUsed = true; 3142 break; 3143 } 3142 3144 } 3143 3145 } 3144 }3145 3146 /* If recent-medium usage is unique: */ 3146 3147 if (!fIsRecentMediumUsed)
Note:
See TracChangeset
for help on using the changeset viewer.