summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-01 14:08:03 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-01 14:08:03 +0300
commitc65c2a8130c7748a2b8eee03ff716bd9db699d79 (patch)
tree6321e3e8fe7f6bee7723422d3b59732ef865f809 /src/gui/widgets/itemcontainer.cpp
parent14b6bc262cb761f7949f0d39606cb1b562d68cc7 (diff)
downloadplus-c65c2a8130c7748a2b8eee03ff716bd9db699d79.tar.gz
plus-c65c2a8130c7748a2b8eee03ff716bd9db699d79.tar.bz2
plus-c65c2a8130c7748a2b8eee03ff716bd9db699d79.tar.xz
plus-c65c2a8130c7748a2b8eee03ff716bd9db699d79.zip
Restore adding items to outfits and drops by clicking only.
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-rw-r--r--src/gui/widgets/itemcontainer.cpp3
1 files changed, 3 insertions, 0 deletions
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();
}
}