From 7bb3daddbfca03366dd51a03d385fdb4f5ec85b7 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Thu, 13 Mar 2025 00:04:35 +0000 Subject: Show quantity for item qty 1 in limited stock shops (no quantity display reserved for unlimited stock shops) Depends on !140 due to merge conflicts. **** mana/plus!141 --- src/resources/item/shopitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/item/shopitem.cpp b/src/resources/item/shopitem.cpp index 2ed6299cb..efbda00ec 100644 --- a/src/resources/item/shopitem.cpp +++ b/src/resources/item/shopitem.cpp @@ -112,7 +112,7 @@ void ShopItem::updateDisplayName(const int quantity) UnitsDb::formatCurrency(mCurrency, mPrice)).append(") "); } - if (mShowQuantity && quantity > 1) + if (mShowQuantity && quantity > 0) mDisplayName.append("[").append(toString(quantity)).append("]"); if (mUsedQuantity > 0) -- cgit v1.2.3-70-g09d2