summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/outfitwindow.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp
index 09cf1a95c..a74967bb4 100644
--- a/src/gui/windows/outfitwindow.cpp
+++ b/src/gui/windows/outfitwindow.cpp
@@ -421,17 +421,15 @@ void OutfitWindow::mouseDragged(MouseEvent &event)
void OutfitWindow::mousePressed(MouseEvent &event)
{
const int index = getIndexFromGrid(event.getX(), event.getY());
- if (index == -1)
+ if (event.getButton() == MouseButton::RIGHT && popupManager)
{
- if (event.getButton() == MouseButton::RIGHT && popupManager)
- {
- popupManager->showOutfitsPopup();
- event.consume();
- }
- else
- {
- Window::mousePressed(event);
- }
+ popupManager->showOutfitsPopup();
+ event.consume();
+ return;
+ }
+ else if (index == -1)
+ {
+ Window::mousePressed(event);
return;
}
mMoved = false;