VirtualBox

Ignore:
Timestamp:
Aug 29, 2019 9:21:14 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Make sure newly created/added VMs being appended to the end of list.

File:
1 edited

Legend:

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

    r77847 r80493  
    124124    switch (pNode->type())
    125125    {
    126         case UIChooserItemType_Group:   m_nodesGroup.insert(iPosition, pNode); return;
    127         case UIChooserItemType_Global:  m_nodesGlobal.insert(iPosition, pNode); return;
    128         case UIChooserItemType_Machine: m_nodesMachine.insert(iPosition, pNode); return;
     126        case UIChooserItemType_Group:   m_nodesGroup.insert(iPosition == -1 ? m_nodesGroup.size() : iPosition, pNode); return;
     127        case UIChooserItemType_Global:  m_nodesGlobal.insert(iPosition == -1 ? m_nodesGlobal.size() : iPosition, pNode); return;
     128        case UIChooserItemType_Machine: m_nodesMachine.insert(iPosition == -1 ? m_nodesMachine.size() : iPosition, pNode); return;
    129129        default: break;
    130130    }
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