From 0c7b839dd83d1ee0589570119dc64cd5826fcbf2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Jun 2013 19:38:45 +0300 Subject: Fix crash in inventory/storage if sorting dropdown is open. --- src/gui/inventorywindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index a817e749f..ca6804ea9 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -273,6 +273,8 @@ InventoryWindow::~InventoryWindow() mInventory->removeInventoyListener(this); if (!invInstances.empty()) invInstances.front()->updateDropButton(); + + mSortDropDown->hideDrop(); delete mSortModel; mSortModel = nullptr; delete mTextPopup; -- cgit v1.2.3-70-g09d2