summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-26 22:23:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-26 22:23:05 +0300
commit7ba5e3db652be97b1007b1025d9d016e6d47ce13 (patch)
tree513ee588ffb64578f375f87448dc774d04bf280b /src/gui/widgets
parent94aee6b81132884686bce4473d67380c57c72fff (diff)
downloadmanaplus-7ba5e3db652be97b1007b1025d9d016e6d47ce13.tar.gz
manaplus-7ba5e3db652be97b1007b1025d9d016e6d47ce13.tar.bz2
manaplus-7ba5e3db652be97b1007b1025d9d016e6d47ce13.tar.xz
manaplus-7ba5e3db652be97b1007b1025d9d016e6d47ce13.zip
fix selection in shoplistbox.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/shoplistbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index 889cf4129..9918b7788 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -226,7 +226,7 @@ void ShopListBox::mouseMoved(gcn::MouseEvent &event)
void ShopListBox::mouseReleased(gcn::MouseEvent& mouseEvent)
{
- ListBox::mousePressed(mouseEvent);
+ ListBox::mouseReleased(mouseEvent);
if (mouseEvent.getButton() == gcn::MouseEvent::RIGHT)
{
setSelected(std::max(0, getSelectionByMouse(mouseEvent.getY())));