VirtualBox

Ignore:
Timestamp:
Aug 18, 2020 2:04:38 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9623: UICommon: No need to maintain recent medium usage uniqueness for DVDs anymore since r139977.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r85489 r85821  
    31313131        /* Make sure recent-medium usage is unique: */
    31323132        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)
    31363135            {
    3137                 const CMedium &comOtherMedium = otherAttachment.GetMedium();
    3138                 if (!comOtherMedium.isNull() && comOtherMedium.GetLocation() == strRecentMediumLocation)
     3136                if (otherAttachment != comCurrentAttachment)
    31393137                {
    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                    }
    31423144                }
    31433145            }
    3144         }
    31453146        /* If recent-medium usage is unique: */
    31463147        if (!fIsRecentMediumUsed)
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