Changeset 86756 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 29, 2020 10:41:03 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r86748 r86756 764 764 void UIChooserAbstractModel::sltHandleCloudProviderUninstall(const QUuid &uProviderId) 765 765 { 766 /* We should stop cloud machine updates currently being performed: */ 767 foreach (const UICloudEntityKey &key, m_cloudEntityKeysBeingUpdated) 768 { 769 /* Skip unrelated keys: */ 770 if (key.m_uMachineId.isNull()) 771 continue; 772 773 /* Search machine node: */ 774 UIChooserNode *pNode = searchMachineNode(key.m_strProviderShortName, key.m_strProfileName, key.m_uMachineId); 775 AssertPtrReturnVoid(pNode); 776 /* Acquire cloud machine item: */ 777 UIVirtualMachineItemCloud *pCloudMachineItem = pNode->toMachineNode()->cache()->toCloud(); 778 AssertPtrReturnVoid(pCloudMachineItem); 779 780 /* Wait for cloud machine refresh task to complete: */ 781 pCloudMachineItem->waitForAsyncInfoUpdateFinished(); 782 } 783 766 784 /* Search and delete corresponding cloud provider node if present: */ 767 785 delete searchProviderNode(uProviderId); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r86744 r86756 1131 1131 void UIChooserModel::sltHandleCloudProviderUninstall(const QUuid &uProviderId) 1132 1132 { 1133 /* Search for selected cloud machine items: */1134 foreach (UIVirtualMachineItem *pItem, selectedMachineItems())1135 {1136 /* Skip unrelated nodes: */1137 AssertPtrReturnVoid(pItem);1138 UIVirtualMachineItemCloud *pCloudItem = pItem->toCloud();1139 if (!pCloudItem)1140 continue;1141 1142 /* Wait for cloud machine refresh task to complete: */1143 pCloudItem->waitForAsyncInfoUpdateFinished();1144 }1145 1146 1133 /* Call to base-class: */ 1147 1134 UIChooserAbstractModel::sltHandleCloudProviderUninstall(uProviderId);
Note:
See TracChangeset
for help on using the changeset viewer.