From 65cd527ac21a70617633d4023f9af6503931bbbb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Feb 2015 20:45:56 +0300 Subject: Fix storage window opening. --- src/gui/windows/inventorywindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index bd6bdfc7f..59c82a20a 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -331,6 +331,8 @@ void InventoryWindow::postInit() mItems->setSortType(mSortDropDown->getSelected()); widgetResized(Event(nullptr)); + if (mInventory && mInventory->getType() == InventoryType::STORAGE) + setVisible(true); } InventoryWindow::~InventoryWindow() -- cgit v1.2.3-70-g09d2