summaryrefslogtreecommitdiff
path: root/src/gui/sell.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-08-12 08:52:03 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-08-12 08:52:03 +0000
commitebd331e0db4b7488efe572e93e1de5ae7fa15eca (patch)
tree13d2f1a3d93de9958ae2a5e3bad42a7603d1305e /src/gui/sell.cpp
parentbe53fc074afd6bfc2a9e2b16dadbde372fb7cd09 (diff)
downloadmana-ebd331e0db4b7488efe572e93e1de5ae7fa15eca.tar.gz
mana-ebd331e0db4b7488efe572e93e1de5ae7fa15eca.tar.bz2
mana-ebd331e0db4b7488efe572e93e1de5ae7fa15eca.tar.xz
mana-ebd331e0db4b7488efe572e93e1de5ae7fa15eca.zip
Resetting quantity to 0 after selecting other items in buy/sell dialogs.
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
{