From c4180b083a13ac03d294838c578a9cd9862ddaf9 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Mon, 11 Apr 2011 23:18:45 +0200 Subject: Fixing missing call to updateButtonsAndLabels() in NPC buy dialog Reviewed-by: Thorbjorn --- src/gui/buy.cpp | 6 +----- 1 file changed, 1 insertion(+), 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)); } } -- cgit v1.2.3-60-g2f50