From c65c2a8130c7748a2b8eee03ff716bd9db699d79 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 Jun 2013 14:08:03 +0300 Subject: Restore adding items to outfits and drops by clicking only. --- src/gui/widgets/itemcontainer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/itemcontainer.cpp') diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index f591af19c..eb353f5cf 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -401,11 +401,13 @@ void ItemContainer::mousePressed(gcn::MouseEvent &event) if (mSelectedIndex == index && mClicks != 2) { dragDrop.dragItem(item, DragDropSource::DRAGDROP_SOURCE_INVENTORY); + dragDrop.select(item); mSelectionStatus = SEL_DESELECTING; } else if (item && item->getId()) { dragDrop.dragItem(item, DragDropSource::DRAGDROP_SOURCE_INVENTORY); + dragDrop.select(item); setSelectedIndex(index); mSelectionStatus = SEL_SELECTING; @@ -420,6 +422,7 @@ void ItemContainer::mousePressed(gcn::MouseEvent &event) } else { + dragDrop.deselect(); selectNone(); } } -- cgit v1.2.3-70-g09d2