VirtualBox

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


Ignore:
Timestamp:
Oct 29, 2020 10:41:03 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Cleanup extension pack uninstall logic, we should stop updates for all active cloud machines, not for selected only; This allows us to move that logic to abstract model as well.

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  
    764764void UIChooserAbstractModel::sltHandleCloudProviderUninstall(const QUuid &uProviderId)
    765765{
     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
    766784    /* Search and delete corresponding cloud provider node if present: */
    767785    delete searchProviderNode(uProviderId);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r86744 r86756  
    11311131void UIChooserModel::sltHandleCloudProviderUninstall(const QUuid &uProviderId)
    11321132{
    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 
    11461133    /* Call to base-class: */
    11471134    UIChooserAbstractModel::sltHandleCloudProviderUninstall(uProviderId);
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