summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-24 14:43:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-24 14:43:47 +0300
commit972a29060fb65b058bf0aedbcaa4f563d189a9c1 (patch)
treeeed5d9a59bfe7eb65d6edcbcb443c31b3f5d702c /src/gui/windows
parent1cd50987bce69ada9ccea8c822ccd0ffb34cedde (diff)
downloadplus-972a29060fb65b058bf0aedbcaa4f563d189a9c1.tar.gz
plus-972a29060fb65b058bf0aedbcaa4f563d189a9c1.tar.bz2
plus-972a29060fb65b058bf0aedbcaa4f563d189a9c1.tar.xz
plus-972a29060fb65b058bf0aedbcaa4f563d189a9c1.zip
Impliment context menu support for different inventory types.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/inventorywindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index 944c35f24..80f9cc5fd 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -501,7 +501,7 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
const int my = event.getY() + getY();
if (popupMenu)
- popupMenu->showPopup(this, mx, my, item, isMainInventory());
+ popupMenu->showPopup(this, mx, my, item, mInventory->getType());
}
if (!mInventory)