diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-27 16:51:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-27 16:51:24 +0300 |
commit | 99bdcc0bbd6ec410958d8edf320a5ba6f1dba55a (patch) | |
tree | d80b0ecaaf012d81ebe1aabe643bd2c106e790cb /src/gui/inventorywindow.cpp | |
parent | 7b22a33e04278723b0a93e99148df6e1cda641a2 (diff) | |
download | manaverse-99bdcc0bbd6ec410958d8edf320a5ba6f1dba55a.tar.gz manaverse-99bdcc0bbd6ec410958d8edf320a5ba6f1dba55a.tar.bz2 manaverse-99bdcc0bbd6ec410958d8edf320a5ba6f1dba55a.tar.xz manaverse-99bdcc0bbd6ec410958d8edf320a5ba6f1dba55a.zip |
Unselect item in inventory if it was added to outfit window.
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); |