Changeset 43210 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 5, 2012 6:15:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp
r43177 r43210 899 899 AssertMsg(pCastedMimeData, ("Can't cast passed mime-data to UIGChooserItemMimeData!")); 900 900 UIGChooserItem *pItem = pCastedMimeData->item(); 901 /* Make sure passed group contains only mutable machines: */ 902 if (pItem->toGroupItem()->isContainsLockedMachine()) 901 /* Make sure passed group is mutable within this group: */ 902 if (pItem->toGroupItem()->isContainsLockedMachine() && 903 !items(UIGChooserItemType_Group).contains(pItem)) 903 904 return false; 904 905 /* Make sure passed group is not 'this': */ … … 921 922 AssertMsg(pCastedMimeData, ("Can't cast passed mime-data to UIGChooserItemMimeData!")); 922 923 UIGChooserItem *pItem = pCastedMimeData->item(); 923 /* Make sure passed machine is mutable: */ 924 if (pItem->toMachineItem()->isLockedMachine()) 924 /* Make sure passed machine is mutable within this group: */ 925 if (pItem->toMachineItem()->isLockedMachine() && 926 !items(UIGChooserItemType_Machine).contains(pItem)) 925 927 return false; 926 928 switch (pEvent->proposedAction())
Note:
See TracChangeset
for help on using the changeset viewer.