diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 11:34:43 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-11 15:00:36 -0600 |
commit | a34d8a88df817371823e8e036b3a9208f8d5ba85 (patch) | |
tree | 16d15ba60685c9afe5cc26c59c41baff1efcf0e4 /src/gui/storagewindow.cpp | |
parent | 9935a143cc9c2cd672889965b5db647921cf0210 (diff) | |
download | mana-client-a34d8a88df817371823e8e036b3a9208f8d5ba85.tar.gz mana-client-a34d8a88df817371823e8e036b3a9208f8d5ba85.tar.bz2 mana-client-a34d8a88df817371823e8e036b3a9208f8d5ba85.tar.xz mana-client-a34d8a88df817371823e8e036b3a9208f8d5ba85.zip |
Don't move stuff from inventory when not visible
Diffstat (limited to 'src/gui/storagewindow.cpp')
-rw-r--r-- | src/gui/storagewindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/storagewindow.cpp b/src/gui/storagewindow.cpp index ca7a547f..6a813bc4 100644 --- a/src/gui/storagewindow.cpp +++ b/src/gui/storagewindow.cpp @@ -121,6 +121,8 @@ void StorageWindow::action(const gcn::ActionEvent &event) { if (event.getId() == "store") { + if (!inventoryWindow->isVisible()) return; + Item *item = inventoryWindow->getSelectedItem(); if (!item) |