summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-02 19:38:45 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-02 19:38:45 +0300
commit0c7b839dd83d1ee0589570119dc64cd5826fcbf2 (patch)
treef36215faab1773584ccd2a4c96895b0a6bd8147e /src
parent9d9890e76023681a3ef98e2a743856f66a91e97f (diff)
downloadmv-0c7b839dd83d1ee0589570119dc64cd5826fcbf2.tar.gz
mv-0c7b839dd83d1ee0589570119dc64cd5826fcbf2.tar.bz2
mv-0c7b839dd83d1ee0589570119dc64cd5826fcbf2.tar.xz
mv-0c7b839dd83d1ee0589570119dc64cd5826fcbf2.zip
Fix crash in inventory/storage if sorting dropdown is open.
Diffstat (limited to 'src')
-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;