Changeset 78294 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 25, 2019 11:13:31 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r77948 r78294 637 637 /* Make sure selected-item present, if possible: */ 638 638 if (!firstSelectedItem() && !navigationItems().isEmpty()) 639 { 639 640 setSelectedItem(navigationItems().first()); 641 emit sigSelectionInvalidated(); 642 } 640 643 /* Make sure current-item present, if possible: */ 641 644 else if (!currentItem() && firstSelectedItem()) … … 687 690 /* Make sure at least one item selected after that: */ 688 691 if (!firstSelectedItem() && !navigationItems().isEmpty()) 692 { 689 693 setSelectedItem(navigationItems().first()); 694 emit sigSelectionInvalidated(); 695 } 690 696 } 691 697 … … 812 818 delete pCurrentNode; 813 819 814 /* Notify about selection invalidated: */815 emit sigSelectionInvalidated();816 817 820 /* And update model: */ 818 821 updateNavigationItemList(); … … 824 827 } 825 828 else 829 { 826 830 setSelectedItem(navigationItems().first()); 831 emit sigSelectionInvalidated(); 832 } 827 833 saveGroupSettings(); 828 834 } … … 1267 1273 setSelectedItem(gEDataManager->selectorWindowLastItemChosen()); 1268 1274 if (!firstSelectedItem() && !navigationItems().isEmpty()) 1275 { 1269 1276 setSelectedItem(navigationItems().first()); 1277 emit sigSelectionInvalidated(); 1278 } 1270 1279 } 1271 1280 … … 1485 1494 updateLayout(); 1486 1495 if (!navigationItems().isEmpty()) 1496 { 1487 1497 setSelectedItem(navigationItems().first()); 1498 emit sigSelectionInvalidated(); 1499 } 1488 1500 else 1489 1501 clearSelectedItems();
Note:
See TracChangeset
for help on using the changeset viewer.