diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/buy.cpp | 6 |
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)); } } |