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