- Timestamp:
- Mar 20, 2020 3:42:09 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/details
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.cpp
r83270 r83352 26 26 #include "UIDetailsModel.h" 27 27 #include "UIDetailsSet.h" 28 #include "UIMedium.h" 28 29 #include "UIVirtualBoxEventHandler.h" 29 30 #include "UIVirtualMachineItemCloud.h" … … 581 582 } 582 583 583 void UIDetailsSet::sltUpdateAppearance() 584 { 584 void UIDetailsSet::sltMediumEnumerated(const QUuid &uId) 585 { 586 /* Is this our medium changed? */ 587 const UIMedium guiMedium = uiCommon().medium(uId); 588 if ( guiMedium.isNull() 589 || !guiMedium.machineIds().contains(m_machine.GetId())) 590 return; 591 585 592 /* Update appearance: */ 586 593 rebuildSet(); … … 605 612 606 613 /* Meidum-enumeration connections: */ 607 connect(&uiCommon(), &UICommon::sigMediumEnumerationStarted, this, &UIDetailsSet::sltUpdateAppearance); 608 connect(&uiCommon(), &UICommon::sigMediumEnumerationFinished, this, &UIDetailsSet::sltUpdateAppearance); 614 connect(&uiCommon(), &UICommon::sigMediumEnumerated, this, &UIDetailsSet::sltMediumEnumerated); 609 615 } 610 616 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.h
r83179 r83352 141 141 /** @name Item stuff. 142 142 * @{ */ 143 /** Updates item appearance. */144 void slt UpdateAppearance();143 /** Handles enumerated signal for medium with @a uId. */ 144 void sltMediumEnumerated(const QUuid &uId); 145 145 /** @} */ 146 146
Note:
See TracChangeset
for help on using the changeset viewer.