summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-03 13:31:46 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-03 13:31:46 +0300
commit9df0183f9a45d92a6be9e3ef9c7641b903134ba3 (patch)
treec47fb18a7afb19f68bcad484bfe2b24bc9c63369 /src/gui/inventorywindow.cpp
parent5614d6765535273d25cbe3de131a4dbd0e4926f4 (diff)
downloadplus-9df0183f9a45d92a6be9e3ef9c7641b903134ba3.tar.gz
plus-9df0183f9a45d92a6be9e3ef9c7641b903134ba3.tar.bz2
plus-9df0183f9a45d92a6be9e3ef9c7641b903134ba3.tar.xz
plus-9df0183f9a45d92a6be9e3ef9c7641b903134ba3.zip
hide dropdown box in inventory if inventory closed.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index ca6804ea9..f659b8693 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -804,3 +804,10 @@ void InventoryWindow::widgetResized(const gcn::Event &event)
mCompactMode = false;
}
}
+
+void InventoryWindow::setVisible(bool visible)
+{
+ if (!visible)
+ mSortDropDown->hideDrop();
+ Window::setVisible(visible);
+}