diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-04 21:20:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-04 21:20:43 +0300 |
commit | d310d2df9c1430446280dc83572c7f7cb614a1f2 (patch) | |
tree | 9a384dcfced0779c7d6da315543825b781d5b113 | |
parent | 8dd47e51d9c318e522b21f28bc3e3935ef692056 (diff) | |
download | manaverse-d310d2df9c1430446280dc83572c7f7cb614a1f2.tar.gz manaverse-d310d2df9c1430446280dc83572c7f7cb614a1f2.tar.bz2 manaverse-d310d2df9c1430446280dc83572c7f7cb614a1f2.tar.xz manaverse-d310d2df9c1430446280dc83572c7f7cb614a1f2.zip |
fix item selection in inventory.
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index eccd21735..20c8b9052 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -488,6 +488,7 @@ void ItemContainer::mouseReleased(gcn::MouseEvent &event) if (index == mSelectedIndex || mSelectedIndex == -1) return; Net::getInventoryHandler()->moveItem(mSelectedIndex, index); + selectNone(); } else { @@ -548,8 +549,6 @@ void ItemContainer::mouseReleased(gcn::MouseEvent &event) } } } - - selectNone(); } void ItemContainer::mouseMoved(gcn::MouseEvent &event) |