VirtualBox

Changeset 80987 in vbox


Ignore:
Timestamp:
Sep 24, 2019 4:24:26 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133581
Message:

FE/Qt: bugref:7127: UICommon: Adjust medium details generator to make sure root medium always enumerated if details were requested for differencing medium.

File:
1 edited

Legend:

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

    r80932 r80987  
    33323332    }
    33333333
     3334    /* For differencing hard-disk we have to request
     3335     * enumeration of whole tree based in it's root item: */
     3336    if (   comMedium.isNotNull()
     3337        && comMedium.GetDeviceType() == KDeviceType_HardDisk)
     3338    {
     3339        /* Traverse through parents to root to catch it: */
     3340        CMedium comRootMedium;
     3341        CMedium comParentMedium = comMedium.GetParent();
     3342        while (comParentMedium.isNotNull())
     3343        {
     3344            comRootMedium = comParentMedium;
     3345            comParentMedium = comParentMedium.GetParent();
     3346        }
     3347        /* Enumerate root if it's found and wasn't cached: */
     3348        if (comRootMedium.isNotNull())
     3349        {
     3350            const QUuid uRootId = comRootMedium.GetId();
     3351            if (medium(uRootId).isNull())
     3352                enumerateMedia(CMediumVector() << comRootMedium);
     3353        }
     3354    }
     3355
    33343356    /* Return UI medium details: */
    33353357    return fUseHtml ? guiMedium.detailsHTML(true /* no diffs? */, fPredictDiff) :
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette