summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-24 16:05:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-24 16:05:23 +0300
commitd6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb (patch)
tree440b21fa9ec5ced1e0222ef42c7aa5f24dbfc39c /src/gui/windows/equipmentwindow.cpp
parent3f5c128b889b4cb41f9782fe1531c55e7d07432f (diff)
downloadmv-d6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb.tar.gz
mv-d6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb.tar.bz2
mv-d6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb.tar.xz
mv-d6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb.zip
Use InventoryType for inventory type.
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r--src/gui/windows/equipmentwindow.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp
index ae438dc10..6bec6dfa3 100644
--- a/src/gui/windows/equipmentwindow.cpp
+++ b/src/gui/windows/equipmentwindow.cpp
@@ -430,9 +430,14 @@ void EquipmentWindow::mousePressed(MouseEvent& event)
{
event.consume();
if (mForing)
+ {
popupMenu->showUndressPopup(mx, my, mBeing, item);
+ }
else
- popupMenu->showPopup(this, mx, my, item, true);
+ {
+ popupMenu->showPopup(this, mx, my, item,
+ InventoryType::INVENTORY);
+ }
return;
}
}