From 174b3d224995c3287a7f012720b01497e22aab37 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 13 Apr 2018 09:17:05 +0400 Subject: [PATCH] Reset an inventory filter after reload or a new game start (bug #4392) --- apps/openmw/mwgui/inventorywindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/openmw/mwgui/inventorywindow.cpp b/apps/openmw/mwgui/inventorywindow.cpp index 7bf8ad025..4acf61d93 100644 --- a/apps/openmw/mwgui/inventorywindow.cpp +++ b/apps/openmw/mwgui/inventorywindow.cpp @@ -129,6 +129,12 @@ namespace MWGui mItemView->setModel(mSortModel); + mFilterAll->setStateSelected(true); + mFilterWeapon->setStateSelected(false); + mFilterApparel->setStateSelected(false); + mFilterMagic->setStateSelected(false); + mFilterMisc->setStateSelected(false); + mPreview->updatePtr(mPtr); mPreview->rebuild(); mPreview->update();