VirtualBox

Ignore:
Timestamp:
Oct 26, 2020 2:25:39 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Forgot to update fake cloud VM node when no VM registered at all.

File:
1 edited

Legend:

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

    r86678 r86708  
    850850    if (!registeredMachines.isEmpty())
    851851        sltCloudMachinesRegistered(strProviderShortName, strProfileName, registeredMachines);
     852    /* If we changed nothing and have nothing currently: */
     853    if (unregisteredIDs.isEmpty() && newIDs.isEmpty())
     854    {
     855        /* We should update at least fake cloud machine node: */
     856        UIChooserNode *pFakeNode = searchFakeNode(pProfileNode);
     857        AssertPtrReturnVoid(pFakeNode);
     858        pFakeNode->toMachineNode()->cache()->toCloud()->setFakeCloudItemState(UIFakeCloudVirtualMachineItemState_Done);
     859        pFakeNode->item()->updateItem();
     860    }
    852861
    853862    /* Remove cloud account key from the list of keys currently being updated: */
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