diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2011-09-18 02:39:48 +0800 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-28 21:22:21 +0300 |
commit | d9eab6bbcd939f1238283ac9bbe003e06de4169c (patch) | |
tree | 19b08c5e1713e9e019d19312d60914ba557499db /src/gui/inventorywindow.cpp | |
parent | b22ce8d250b1fa995f76c337e1cba6a4b164fe23 (diff) | |
download | mv-d9eab6bbcd939f1238283ac9bbe003e06de4169c.tar.gz mv-d9eab6bbcd939f1238283ac9bbe003e06de4169c.tar.bz2 mv-d9eab6bbcd939f1238283ac9bbe003e06de4169c.tar.xz mv-d9eab6bbcd939f1238283ac9bbe003e06de4169c.zip |
Fixed item popup still visible after closing inventory window.
Reviewed-by: Bertram.
Conflicts:
src/gui/widgets/itemcontainer.cpp
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r-- | src/gui/inventorywindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 35165a16a..d6377e4dd 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -375,6 +375,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); |