From e14030fd3e255cd7469cd2d63abc51b1faef52e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Aug 2014 19:32:02 +0300 Subject: Fix code style. --- src/gui/windows/inventorywindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/windows') 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) -- cgit v1.2.3-70-g09d2