From 77d26ae604cdbf50705870371f517d544674dd6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Mar 2012 01:00:50 +0300 Subject: Fix context menu in outfits window. --- src/gui/outfitwindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gui') 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; -- cgit v1.2.3-70-g09d2