VirtualBox

Ignore:
Timestamp:
Jun 10, 2014 2:53:20 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Selector UI: Filter out inaccessible VMs with null IDs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r51548 r51590  
    16111611    LogRelFlow(("UIGChooserModel: Loading VMs...\n"));
    16121612    foreach (CMachine machine, vboxGlobal().virtualBox().GetMachines())
    1613         if (gEDataManager->shouldWeShowMachine(machine.GetId()))
     1613    {
     1614        const QString strMachineID = machine.GetId();
     1615        if (!strMachineID.isEmpty() && gEDataManager->shouldWeShowMachine(strMachineID))
    16141616            addMachineIntoTheTree(machine);
     1617    }
    16151618    LogRelFlow(("UIGChooserModel: VMs loaded.\n"));
    16161619}
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