VirtualBox

Ignore:
Timestamp:
May 28, 2020 2:04:01 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Reuse existing stuff to make sure there is at least one item selected.

File:
1 edited

Legend:

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

    r84589 r84591  
    679679    /* And update model: */
    680680    updateTreeForMainRoot();
     681
     682    /* Choose ungrouped items if present: */
    681683    if (!ungroupedItems.isEmpty())
    682684    {
     
    684686        setCurrentItem(firstSelectedItem());
    685687    }
    686     else
    687     {
    688         setSelectedItem(navigationItems().first());
    689         emit sigSelectionInvalidated();
    690     }
     688    makeSureAtLeastOneItemSelected();
    691689
    692690    /* Save groups finally: */
     
    11401138                                              UIChooserItemSearchFlag_ExactId));
    11411139    }
    1142     /* Else make sure at least one item selected: */
    1143     else
    1144         makeSureAtLeastOneItemSelected();
     1140    makeSureAtLeastOneItemSelected();
    11451141
    11461142    /* Notify listeners about selection change: */
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