VirtualBox

Ignore:
Timestamp:
May 28, 2020 12:52:21 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: When deleting VM items (not whole VMs) we have to choose closes non-selected item as well.

File:
1 edited

Legend:

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

    r84587 r84589  
    689689        emit sigSelectionInvalidated();
    690690    }
     691
     692    /* Save groups finally: */
    691693    saveGroups();
    692694}
     
    15921594        return;
    15931595
    1594     /* Remove all the passed nodes: */
     1596    /* Find and select closest unselected item: */
     1597    setSelectedItem(findClosestUnselectedItem());
     1598
     1599    /* Remove nodes of all the passed items: */
    15951600    foreach (UIChooserItemMachine *pItem, machineItems)
    15961601        delete pItem->node();
     
    15991604    wipeOutEmptyGroups();
    16001605    updateTreeForMainRoot();
    1601     if (!navigationItems().isEmpty())
    1602     {
    1603         setSelectedItem(navigationItems().first());
    1604         emit sigSelectionInvalidated();
    1605     }
    1606     else
    1607         clearSelectedItems();
     1606
     1607    /* Save groups finally: */
    16081608    saveGroups();
    16091609}
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