summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-06 01:00:50 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-06 01:00:50 +0300
commit77d26ae604cdbf50705870371f517d544674dd6f (patch)
treef518ec5cb51675082e2bad214259c78162fb9f41 /src
parenta2d4dc030ef2240abfab1001bdb8ee954f3dd0d1 (diff)
downloadManaVerse-77d26ae604cdbf50705870371f517d544674dd6f.tar.gz
ManaVerse-77d26ae604cdbf50705870371f517d544674dd6f.tar.bz2
ManaVerse-77d26ae604cdbf50705870371f517d544674dd6f.tar.xz
ManaVerse-77d26ae604cdbf50705870371f517d544674dd6f.zip
Fix context menu in outfits window.
Diffstat (limited to 'src')
-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;