summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-04-11 23:18:45 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-04-11 23:18:45 +0200
commitc4180b083a13ac03d294838c578a9cd9862ddaf9 (patch)
tree22159e3b656160066d93176434a4fb6d3a496335 /src/gui/buy.cpp
parent13c4a1131854887ac9ec83f80c7964f6b2949c87 (diff)
downloadmana-client-c4180b083a13ac03d294838c578a9cd9862ddaf9.tar.gz
mana-client-c4180b083a13ac03d294838c578a9cd9862ddaf9.tar.bz2
mana-client-c4180b083a13ac03d294838c578a9cd9862ddaf9.tar.xz
mana-client-c4180b083a13ac03d294838c578a9cd9862ddaf9.zip
Fixing missing call to updateButtonsAndLabels() in NPC buy dialog
Reviewed-by: Thorbjorn
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r--src/gui/buy.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index faa86cc9..299633e9 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -203,11 +203,7 @@ void BuyDialog::action(const gcn::ActionEvent &event)
if (price < 0)
price = 0;
setMoney(mMoney - mAmountItems * price);
-
- // Reset selection
- mAmountItems = 1;
- mSlider->setValue(1);
- mSlider->gcn::Slider::setScale(1, mMaxItems);
+ valueChanged(gcn::SelectionEvent(mShopItemList));
}
}