summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-06 01:00:50 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-08 00:13:25 +0300
commit61481dcdbc3f76bb4aff43de15b981be8b1e56ca (patch)
tree20637f0c3e4040cbac0cd13338ed65e5a56ce473
parent4f2e544cb7619b3448e81c5e2522af88d15feffd (diff)
downloadplus-61481dcdbc3f76bb4aff43de15b981be8b1e56ca.tar.gz
plus-61481dcdbc3f76bb4aff43de15b981be8b1e56ca.tar.bz2
plus-61481dcdbc3f76bb4aff43de15b981be8b1e56ca.tar.xz
plus-61481dcdbc3f76bb4aff43de15b981be8b1e56ca.zip
Fix context menu in outfits window.
-rw-r--r--src/gui/outfitwindow.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp
index 6eaa2ac4e..4f5f07445 100644
--- a/src/gui/outfitwindow.cpp
+++ b/src/gui/outfitwindow.cpp
@@ -402,8 +402,14 @@ void OutfitWindow::mousePressed(gcn::MouseEvent &event)
if (index == -1)
{
if (event.getButton() == gcn::MouseEvent::RIGHT && viewport)
+ {
viewport->showOutfitsPopup();
- Window::mousePressed(event);
+ event.consume();
+ }
+ else
+ {
+ Window::mousePressed(event);
+ }
return;
}
mMoved = false;