VirtualBox

Changeset 90088 in vbox


Ignore:
Timestamp:
Jul 8, 2021 9:24:46 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145587
Message:

FE/Qt: VirtualBox Manager: Ignore machine-state updates for rare intermediate state related to snapshot deletion; Machine causes a lot of assertions in this state.

File:
1 edited

Legend:

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

    r89248 r90088  
    325325}
    326326
    327 void UIVirtualBoxManagerWidget::sltHandleStateChange(const QUuid &)
    328 {
     327void UIVirtualBoxManagerWidget::sltHandleStateChange(const QUuid &uId)
     328{
     329    // WORKAROUND:
     330    // In certain intermediate states VM info can be NULL which
     331    // causing annoying assertions, such updates can be ignored?
     332    CVirtualBox comVBox = uiCommon().virtualBox();
     333    CMachine comMachine = comVBox.FindMachine(uId.toString());
     334    if (comVBox.isOk() && comMachine.isNotNull())
     335    {
     336        switch (comMachine.GetState())
     337        {
     338            case KMachineState_DeletingSnapshot:
     339                return;
     340            default:
     341                break;
     342        }
     343    }
     344
    329345    /* Recache current item info if machine or group item selected: */
    330346    if (isMachineItemSelected() || isGroupItemSelected())
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