summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
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);
+}