- Timestamp:
- Apr 21, 2020 3:30:16 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137429
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r83896 r83897 86 86 /* Build tree for main root: */ 87 87 buildTreeForMainRoot(); 88 updateNavigationItemList();89 updateLayout();90 88 91 89 /* Load last selected-item: */ … … 660 658 { 661 659 /* Update tree for main root: */ 662 updateNavigationItemList(); 663 updateLayout(); 660 updateTreeForMainRoot(); 664 661 665 662 /* Make sure selected-item present, if possible: */ … … 683 680 /* Rebuild tree for main root: */ 684 681 buildTreeForMainRoot(); 685 updateNavigationItemList();686 updateLayout();687 682 688 683 /* Select newly added item: */ … … 704 699 { 705 700 /* Update tree for main root: */ 706 updateNavigationItemList(); 707 updateLayout(); 701 updateTreeForMainRoot(); 708 702 709 703 /* Make sure selected-item present, if possible: */ … … 724 718 /* Rebuild tree for main root: */ 725 719 buildTreeForMainRoot(); 726 updateNavigationItemList();727 updateLayout();728 720 729 721 /* Select newly added item: */ … … 744 736 /* Rebuild tree for main root: */ 745 737 buildTreeForMainRoot(); 746 updateNavigationItemList();747 updateLayout();748 738 749 739 /* Select newly added item: */ … … 782 772 /* Rebuild tree for main root: */ 783 773 buildTreeForMainRoot(); 784 updateNavigationItemList();785 updateLayout();786 774 787 775 /* Restore selection if there was some item before: */ … … 842 830 /* Rebuild tree for main root: */ 843 831 buildTreeForMainRoot(); 844 updateNavigationItemList();845 updateLayout();846 832 } 847 833 … … 929 915 930 916 /* And update model: */ 931 updateNavigationItemList(); 932 updateLayout(); 917 updateTreeForMainRoot(); 933 918 if (!copiedItems.isEmpty()) 934 919 { … … 1058 1043 /* Update model: */ 1059 1044 wipeOutEmptyGroups(); 1060 updateNavigationItemList(); 1061 updateLayout(); 1045 updateTreeForMainRoot(); 1062 1046 setSelectedItem(pNewGroupItem); 1063 1047 saveGroupSettings(); … … 1069 1053 if (!actionPool()->action(UIActionIndexST_M_Machine_S_SortParent)->isEnabled()) 1070 1054 return; 1071 1072 1055 /* Only if some item selected: */ 1073 1056 if (!firstSelectedItem()) … … 1079 1062 /* Rebuild tree for main root: */ 1080 1063 buildTreeForMainRoot(); 1081 updateNavigationItemList();1082 updateLayout();1083 1064 } 1084 1065 … … 1648 1629 * we need QEvent::Scroll events from it: */ 1649 1630 root()->installEventFilterHelper(view()); 1631 1632 /* Update tree for main root: */ 1633 updateTreeForMainRoot(); 1634 } 1635 1636 void UIChooserModel::updateTreeForMainRoot() 1637 { 1638 updateNavigationItemList(); 1639 updateLayout(); 1650 1640 } 1651 1641 … … 1665 1655 /* And update model: */ 1666 1656 wipeOutEmptyGroups(); 1667 updateNavigationItemList(); 1668 updateLayout(); 1657 updateTreeForMainRoot(); 1669 1658 if (!navigationItems().isEmpty()) 1670 1659 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h
r83896 r83897 363 363 /** Build tree for main root. */ 364 364 void buildTreeForMainRoot(); 365 /** Update tree for main root. */ 366 void updateTreeForMainRoot(); 365 367 366 368 /** Removes machine @a items. */
Note:
See TracChangeset
for help on using the changeset viewer.