diff options
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r-- | src/gui/inventorywindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index c3d5460ce..7ceeb6e34 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -373,6 +373,11 @@ Item *InventoryWindow::getSelectedItem() const return mItems->getSelectedItem(); } +void InventoryWindow::unselectItem() +{ + mItems->selectNone(); +} + void InventoryWindow::widgetHidden(const gcn::Event &event) { Window::widgetHidden(event); |