summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/inventorywindow.cpp2
1 files changed, 2 insertions, 0 deletions
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;