Skip to content

Commit

Permalink
Update Cell.qml
Browse files Browse the repository at this point in the history
Fixes issue with non-movable card being moved
  • Loading branch information
TorgeH committed May 15, 2015
1 parent 66f8b05 commit 029eb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qml/items/Cell.qml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Rectangle {
{
if (dropRect.parent.selectedCard !== null)
{
if (Rules.canDropOnCell(dropRect.parent.selectedCard, dropRect) && dropArea.enabled)
if (Rules.canDragCard(dropRect.parent.selectedCard) && Rules.canDropOnCell(dropRect.parent.selectedCard, dropRect) && dropArea.enabled)
{
var move = [{moved : dropRect.parent.selectedCard, from : dropRect.parent.selectedCard.parent, to : dropRect}]
dropRect.parent.moves.push(move);
Expand Down

0 comments on commit 029eb19

Please sign in to comment.