summaryrefslogtreecommitdiff
path: root/src/gui/sell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r--src/gui/sell.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp
index ae432a43..ed7658f2 100644
--- a/src/gui/sell.cpp
+++ b/src/gui/sell.cpp
@@ -148,9 +148,14 @@ void SellDialog::action(const std::string& eventId)
{
slider->setEnabled(true);
increaseButton->setEnabled(true);
+ decreaseButton->setEnabled(false);
m_maxItems = shopInventory[selectedItem].quantity;
m_amountItems = 0;
+ slider->setValue(0);
+ oss << m_amountItems;
+ quantityLabel->setCaption(oss.str());
+ quantityLabel->adjustSize();
}
else
{