VirtualBox

Changeset 84622 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 31, 2020 5:10:05 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: While removing VM, when we are choosing closest unselected item we should invalidate selection if global item was chosen; This have to be done to avoid stale information usage during machine-to-global switch animation.

File:
1 edited

Legend:

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

    r84610 r84622  
    323323void UIChooserModel::makeSureAtLeastOneItemSelected()
    324324{
     325    /* If we have no item selected but at
     326     * least one item in the navigation list (global item): */
    325327    if (!firstSelectedItem() && !navigationItems().isEmpty())
    326328    {
     329        /* We are choosing it, selection became invalidated: */
    327330        setSelectedItem(navigationItems().first());
    328331        emit sigSelectionInvalidated();
     
    449452    if (selectedItems().toSet().intersects(matchedItems))
    450453        setSelectedItem(findClosestUnselectedItem());
     454
     455    /* If global item was chosen, selection became invalidated: */
     456    if (firstSelectedItem()->type() == UIChooserNodeType_Global)
     457        emit sigSelectionInvalidated();
    451458}
    452459
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