summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
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));
}
}