VirtualBox

Changeset 92028 in vbox for trunk


Ignore:
Timestamp:
Oct 25, 2021 12:02:44 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: UIChooserAbstractModel: Add newly registered VM node to model only if it's really exists; It can be quickly removed after registration, that's possible case.

File:
1 edited

Legend:

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

    r91094 r92028  
    703703            /* Add new machine-item: */
    704704            const CMachine comMachine = uiCommon().virtualBox().FindMachine(uMachineId.toString());
    705             addLocalMachineIntoTheTree(comMachine, true /* make it visible */);
     705            if (comMachine.isNotNull())
     706                addLocalMachineIntoTheTree(comMachine, true /* make it visible */);
    706707        }
    707708    }
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