summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-04 21:20:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-04 21:20:43 +0300
commitd310d2df9c1430446280dc83572c7f7cb614a1f2 (patch)
tree9a384dcfced0779c7d6da315543825b781d5b113
parent8dd47e51d9c318e522b21f28bc3e3935ef692056 (diff)
downloadManaVerse-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.cpp3
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)