summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2011-09-18 02:39:48 +0800
committerErik Schilling <ablu.erikschilling@googlemail.com>2011-09-29 01:22:43 +0800
commit48fb6a6a345ae091c78a119795f7716102126241 (patch)
tree731162c4616e769b05761f6421d8a28a8bb5b2b4 /src/gui/inventorywindow.cpp
parentb912a0c991cb0b1e02009d6bb2c9dffd2fa84d3a (diff)
downloadmana-48fb6a6a345ae091c78a119795f7716102126241.tar.gz
mana-48fb6a6a345ae091c78a119795f7716102126241.tar.bz2
mana-48fb6a6a345ae091c78a119795f7716102126241.tar.xz
mana-48fb6a6a345ae091c78a119795f7716102126241.zip
Fixed item popup still visible after closing inventory window.
Reviewed-by: Bertram.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 0dbeb352..2a899fe2 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -237,6 +237,12 @@ Item *InventoryWindow::getSelectedItem() const
return mItems->getSelectedItem();
}
+void InventoryWindow::widgetHidden(const gcn::Event &event)
+{
+ Window::widgetHidden(event);
+ mItems->hidePopup();
+}
+
void InventoryWindow::mouseClicked(gcn::MouseEvent &event)
{
Window::mouseClicked(event);