Changeset 86746 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 28, 2020 5:44:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r86745 r86746 730 730 void UIChooserAbstractModel::sltHandleCloudProviderUninstall(const QUuid &uProviderId) 731 731 { 732 /* Search for top-level provider node: */ 733 foreach (UIChooserNode *pNode, m_pInvisibleRootNode->nodes(UIChooserNodeType_Group)) 734 { 735 /* Skip unrelated nodes: */ 736 AssertPtrReturnVoid(pNode); 737 UIChooserNodeGroup *pGroupNode = pNode->toGroupNode(); 738 AssertPtrReturnVoid(pGroupNode); 739 if (pGroupNode->groupType() != UIChooserNodeGroupType_Provider) 740 continue; 741 const QUuid uIteratedId = pGroupNode->property("id").toUuid(); 742 AssertReturnVoid(!uIteratedId.isNull()); 743 if (uIteratedId != uProviderId) 744 continue; 745 746 /* Remove found provider node: */ 747 delete pNode; 748 } 732 /* Search and delete corresponding cloud provider node if present: */ 733 delete searchProviderNode(uProviderId); 749 734 } 750 735 … … 1085 1070 UIChooserNodeDataPrefixType_Provider, 1086 1071 strProviderShortName)); 1087 pProviderNode->setProperty("id", uProviderId);1088 1072 1089 1073 /* Iterate through provider's profiles: */
Note:
See TracChangeset
for help on using the changeset viewer.