VirtualBox

Ignore:
Timestamp:
Sep 5, 2012 6:15:30 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: VM selector UI: Allow to drag&drop reorder non-mutable (active) items (groups, machines) within their groups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp

    r43177 r43210  
    899899        AssertMsg(pCastedMimeData, ("Can't cast passed mime-data to UIGChooserItemMimeData!"));
    900900        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))
    903904            return false;
    904905        /* Make sure passed group is not 'this': */
     
    921922        AssertMsg(pCastedMimeData, ("Can't cast passed mime-data to UIGChooserItemMimeData!"));
    922923        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))
    925927            return false;
    926928        switch (pEvent->proposedAction())
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette