VirtualBox

Ignore:
Timestamp:
Jun 14, 2019 1:32:09 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131320
Message:

FE/Qt: bugref:7127: UIMediumManager: Within the new medium event handling architecture on medium-item update request (which comes when some medium is enumerated) we should also update all the item children recursively cause their mediums are no more being updated without need.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp

    r78722 r79153  
    13521352    if (pMediumItem == mediumItem(type))
    13531353        refetchCurrentMediumItem(type);
     1354
     1355#ifdef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
     1356    /* Update all the children recursively as well: */
     1357    foreach(const QUuid &uMediumId, vboxGlobal().mediumIDs())
     1358    {
     1359        UIMedium guiMedium = vboxGlobal().medium(uMediumId);
     1360        if (   !guiMedium.isNull()
     1361            && guiMedium.parentID() == medium.id())
     1362            updateMediumItem(guiMedium);
     1363    }
     1364#endif
    13541365}
    13551366
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