From 7ba5e3db652be97b1007b1025d9d016e6d47ce13 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Oct 2013 22:23:05 +0300 Subject: fix selection in shoplistbox. --- src/gui/widgets/shoplistbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()))); -- cgit v1.2.3-70-g09d2