From d310d2df9c1430446280dc83572c7f7cb614a1f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Jul 2013 21:20:43 +0300 Subject: fix item selection in inventory. --- src/gui/widgets/itemcontainer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2