Changeset 84623 in vbox
- Timestamp:
- May 31, 2020 5:15:24 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/details
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsGroup.cpp
r83921 r84623 89 89 90 90 /* Cleanup superflous items: */ 91 bool fCleanupPerformed = m_items.size() > m_machineItems.size();91 const bool fCleanupPerformed = m_items.size() > m_machineItems.size(); 92 92 while (m_items.size() > m_machineItems.size()) 93 93 delete m_items.last(); 94 foreach (UIDetailsItem *pItem, m_items) 95 pItem->toSet()->clearSet(); 94 96 if (fCleanupPerformed) 95 97 updateGeometry(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.cpp
r84076 r84623 62 62 /* Remove set from the parent group: */ 63 63 parentItem()->removeItem(this); 64 } 65 66 void UIDetailsSet::clearSet() 67 { 68 /* Clear passed arguments: */ 69 m_pMachineItem = 0; 70 m_comMachine = CMachine(); 71 m_comCloudMachine = CCloudMachine(); 64 72 } 65 73 … … 568 576 return; 569 577 578 /* Make sure VM is set: */ 579 if (m_comMachine.isNull()) 580 return; 581 570 582 /* Is this our VM changed? */ 571 583 if (m_comMachine.GetId() != uId) … … 582 594 return; 583 595 596 /* Make sure VM is set: */ 597 if (m_comMachine.isNull()) 598 return; 599 584 600 /* Is this our VM changed? */ 585 601 if (m_comMachine.GetId() != uId) … … 594 610 /* For local VMs only: */ 595 611 if (!m_fIsLocal) 612 return; 613 614 /* Make sure VM is set: */ 615 if (m_comMachine.isNull()) 596 616 return; 597 617 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.h
r83719 r84623 55 55 /** @name Item stuff. 56 56 * @{ */ 57 /** Cleanups set, wiping out machine-item and [cloud]machine information for good. */ 58 void clearSet(); 57 59 /** Builds set based on passed @a pMachineItem. 58 60 * @param fFullSet Brigns whether full set should be built.
Note:
See TracChangeset
for help on using the changeset viewer.