Changeset 84591 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 28, 2020 2:04:01 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r84589 r84591 679 679 /* And update model: */ 680 680 updateTreeForMainRoot(); 681 682 /* Choose ungrouped items if present: */ 681 683 if (!ungroupedItems.isEmpty()) 682 684 { … … 684 686 setCurrentItem(firstSelectedItem()); 685 687 } 686 else 687 { 688 setSelectedItem(navigationItems().first()); 689 emit sigSelectionInvalidated(); 690 } 688 makeSureAtLeastOneItemSelected(); 691 689 692 690 /* Save groups finally: */ … … 1140 1138 UIChooserItemSearchFlag_ExactId)); 1141 1139 } 1142 /* Else make sure at least one item selected: */ 1143 else 1144 makeSureAtLeastOneItemSelected(); 1140 makeSureAtLeastOneItemSelected(); 1145 1141 1146 1142 /* Notify listeners about selection change: */
Note:
See TracChangeset
for help on using the changeset viewer.