summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-29 19:32:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-29 19:32:02 +0300
commite14030fd3e255cd7469cd2d63abc51b1faef52e4 (patch)
treeb880a043e06826162383198e5e89b167f2e5b4d0 /src/gui/windows/inventorywindow.cpp
parent83e5dc67b704b397d85df7d4f4cd48b6d239b875 (diff)
downloadmv-e14030fd3e255cd7469cd2d63abc51b1faef52e4.tar.gz
mv-e14030fd3e255cd7469cd2d63abc51b1faef52e4.tar.bz2
mv-e14030fd3e255cd7469cd2d63abc51b1faef52e4.tar.xz
mv-e14030fd3e255cd7469cd2d63abc51b1faef52e4.zip
Fix code style.
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r--src/gui/windows/inventorywindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index 2c38c0358..c1bdafe7b 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -39,6 +39,7 @@
#include "gui/models/sortlistmodelinv.h"
+#include "gui/popups/itempopup.h"
#include "gui/popups/popupmenu.h"
#include "gui/popups/textpopup.h"
@@ -414,7 +415,8 @@ void InventoryWindow::unselectItem()
void InventoryWindow::widgetHidden(const Event &event)
{
Window::widgetHidden(event);
- mItems->hidePopup();
+ if (itemPopup)
+ itemPopup->setVisible(false);
}
void InventoryWindow::mouseClicked(MouseEvent &event)