summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-28 21:27:33 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-28 21:27:33 +0300
commit727808b197394912f212641fb2e39088eab82060 (patch)
treedfb44abad27a4cce61a1931a9656e03df786bfe7 /src/gui/inventorywindow.cpp
parentd9eab6bbcd939f1238283ac9bbe003e06de4169c (diff)
downloadmanaplus-727808b197394912f212641fb2e39088eab82060.tar.gz
manaplus-727808b197394912f212641fb2e39088eab82060.tar.bz2
manaplus-727808b197394912f212641fb2e39088eab82060.tar.xz
manaplus-727808b197394912f212641fb2e39088eab82060.zip
Add some checks after previous commit.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index d6377e4dd..f52151698 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -378,7 +378,8 @@ Item *InventoryWindow::getSelectedItem() const
void InventoryWindow::widgetHidden(const gcn::Event &event)
{
Window::widgetHidden(event);
- mItems->hidePopup();
+ if (mItems)
+ mItems->hidePopup();
}
void InventoryWindow::mouseClicked(gcn::MouseEvent &event)