Changeset 43551 in vbox
- Timestamp:
- Oct 5, 2012 10:38:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp
r43540 r43551 165 165 if (model()->focusItem() == this) 166 166 { 167 /* Unset the focus /selection: */168 model()->setFocusItem(0 , true);169 } 170 /* If that item is NOT focused, butselected: */171 elseif (model()->currentItems().contains(this))167 /* Unset the focus: */ 168 model()->setFocusItem(0); 169 } 170 /* If that item is selected: */ 171 if (model()->currentItems().contains(this)) 172 172 { 173 173 /* Remove item from the selection list: */ … … 1069 1069 /* Copy passed item into this group: */ 1070 1070 UIGChooserItem *pNewGroupItem = new UIGChooserItemGroup(this, pItem->toGroupItem(), iPosition); 1071 if (closed()) 1072 open(false); 1071 1073 1072 1074 /* If proposed action is 'move': */ … … 1081 1083 pModel->updateNavigation(); 1082 1084 pModel->updateLayout(); 1083 pModel->setCurrentItem(pNewGroupItem->parentItem()->toGroupItem()->opened() ? 1084 pNewGroupItem : pNewGroupItem->parentItem()); 1085 pModel->setCurrentItem(pNewGroupItem); 1085 1086 pModel->saveGroupSettings(); 1086 1087 break; … … 1121 1122 /* Copy passed machine item into this group: */ 1122 1123 UIGChooserItem *pNewMachineItem = new UIGChooserItemMachine(this, pItem->toMachineItem(), iPosition); 1124 if (closed()) 1125 open(false); 1123 1126 1124 1127 /* If proposed action is 'move': */ … … 1133 1136 pModel->updateNavigation(); 1134 1137 pModel->updateLayout(); 1135 pModel->setCurrentItem(pNewMachineItem->parentItem()->toGroupItem()->opened() ? 1136 pNewMachineItem : pNewMachineItem->parentItem()); 1138 pModel->setCurrentItem(pNewMachineItem); 1137 1139 pModel->saveGroupSettings(); 1138 1140 break;
Note:
See TracChangeset
for help on using the changeset viewer.