summaryrefslogtreecommitdiff
path: root/src/gui/storagewindow.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-11 11:34:43 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-11 11:34:43 -0600
commita3d675e1dde4c80e687c7264bc86c6189c13dddb (patch)
tree6793b8fee2204b7dd768a54fc4ad16476f0ea272 /src/gui/storagewindow.cpp
parent7af746a8ce0c64932923419c5a35a25a5b8c4005 (diff)
downloadmana-client-a3d675e1dde4c80e687c7264bc86c6189c13dddb.tar.gz
mana-client-a3d675e1dde4c80e687c7264bc86c6189c13dddb.tar.bz2
mana-client-a3d675e1dde4c80e687c7264bc86c6189c13dddb.tar.xz
mana-client-a3d675e1dde4c80e687c7264bc86c6189c13dddb.zip
Don't move stuff from inventory when not visible
Diffstat (limited to 'src/gui/storagewindow.cpp')
-rw-r--r--src/gui/storagewindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/storagewindow.cpp b/src/gui/storagewindow.cpp
index 2b8ab8f3..5981f121 100644
--- a/src/gui/storagewindow.cpp
+++ b/src/gui/storagewindow.cpp
@@ -126,6 +126,8 @@ void StorageWindow::action(const gcn::ActionEvent &event)
}
else if (event.getId() == "store")
{
+ if (!inventoryWindow->isVisible()) return;
+
Item *item = inventoryWindow->getSelectedItem();
if (!item)