Fixed using the wrong index variable after refactoring.
This commit is contained in:
@@ -639,10 +639,10 @@ DragSortableListView::HandleDropMessage(const BMessage* message,
|
|||||||
if (items.CountItems() == 0)
|
if (items.CountItems() == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (modifiers() & B_SHIFT_KEY)
|
if ((modifiers() & B_SHIFT_KEY) != 0)
|
||||||
CopyItems(items, index);
|
CopyItems(items, dropIndex);
|
||||||
else
|
else
|
||||||
MoveItems(items, index);
|
MoveItems(items, dropIndex);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user