summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/inventorywindow.cpp4
-rw-r--r--src/gui/windows/inventorywindow.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index dde1bf709..6fffb3cf2 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -282,6 +282,10 @@ InventoryWindow::InventoryWindow(Inventory *const inventory):
loadWindowState();
enableVisibleSound(true);
+}
+
+void InventoryWindow::postInit()
+{
slotsChanged(mInventory);
mItems->setSortType(mSortDropDown->getSelected());
diff --git a/src/gui/windows/inventorywindow.h b/src/gui/windows/inventorywindow.h
index 459e3bfa2..d8742dd64 100644
--- a/src/gui/windows/inventorywindow.h
+++ b/src/gui/windows/inventorywindow.h
@@ -69,6 +69,8 @@ class InventoryWindow final : public Window,
*/
~InventoryWindow();
+ void postInit() override;
+
void storeSortOrder();
/**