- Timestamp:
- Aug 16, 2012 4:36:21 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.cpp
r42849 r42850 377 377 void retranslateUi() 378 378 { 379 setText(QApplication::translate("UIActionPool", " &Add Group..."));379 setText(QApplication::translate("UIActionPool", "Gro&up")); 380 380 setStatusTip(QApplication::translate("UIActionPool", "Add a new group based on the items selected")); 381 381 } -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r42849 r42850 776 776 QStringList busyGroupNames; 777 777 QStringList busyMachineNames; 778 foreach (UIGChooserItem *pItem, selectionList()) 778 QList<UIGChooserItem*> selectedItems = selectionList(); 779 foreach (UIGChooserItem *pItem, selectedItems) 779 780 { 780 781 /* For each of known types: */ … … 786 787 if (busyGroupNames.contains(pItem->name())) 787 788 break; 788 /* Copy group item: */ 789 /* Add name to busy: */ 790 busyGroupNames << pItem->name(); 791 /* Copy or move group item: */ 789 792 new UIGChooserItemGroup(pNewGroupItem, pItem->toGroupItem()); 790 busyGroupNames << pItem->name();793 delete pItem; 791 794 break; 792 795 } … … 796 799 if (busyMachineNames.contains(pItem->name())) 797 800 break; 798 /* Copy machine item: */ 801 /* Add name to busy: */ 802 busyMachineNames << pItem->name(); 803 /* Copy or move machine item: */ 799 804 new UIGChooserItemMachine(pNewGroupItem, pItem->toMachineItem()); 800 busyMachineNames << pItem->name();805 delete pItem; 801 806 break; 802 807 } … … 804 809 } 805 810 /* Update model: */ 811 updateGroupTree(); 806 812 updateNavigation(); 807 813 updateLayout();
Note:
See TracChangeset
for help on using the changeset viewer.