VirtualBox

Changeset 86746 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 28, 2020 5:44:51 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: For for cloud provider uninstall logic; Cloud provider node can be removed much smarter way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r86745 r86746  
    730730void UIChooserAbstractModel::sltHandleCloudProviderUninstall(const QUuid &uProviderId)
    731731{
    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);
    749734}
    750735
     
    10851070                                                           UIChooserNodeDataPrefixType_Provider,
    10861071                                                           strProviderShortName));
    1087         pProviderNode->setProperty("id", uProviderId);
    10881072
    10891073        /* Iterate through provider's profiles: */
Note: See TracChangeset for help on using the changeset viewer.

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