From cf06e522d4914ba89db1544003a3572f6d19bd02 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Aug 2017 00:54:59 +0300 Subject: Hide item container slots if item present with amount 0. --- src/gui/widgets/itemcontainer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index fd998180a..26c6e2e06 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -1173,7 +1173,8 @@ int ItemContainer::updateMatrix() if (item == nullptr || item->getId() == 0 || - !item->isHaveTag(mTag)) + !item->isHaveTag(mTag) || + item->getQuantity() == 0) { if (mShowEmptyRows == ShowEmptyRows_true) sortedItems.push_back(new ItemIdPair(idx, nullptr)); -- cgit v1.2.3-70-g09d2