summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-30 16:57:31 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-30 16:57:31 +0200
commit908dceb882723460cde35ec8ef22927b702ab874 (patch)
tree0598a9cb5d720c66c619fd350d64453490b35143 /src/gui/buy.cpp
parent8a67e721880959b431d220e2d1fd5b60a4f11ad7 (diff)
parent0b1c6eb3c4941dc2d47ad3207bab4509ae1014cc (diff)
downloadmana-908dceb882723460cde35ec8ef22927b702ab874.tar.gz
mana-908dceb882723460cde35ec8ef22927b702ab874.tar.bz2
mana-908dceb882723460cde35ec8ef22927b702ab874.tar.xz
mana-908dceb882723460cde35ec8ef22927b702ab874.zip
Merge branch '0.5'
Conflicts: CMakeLists.txt po/fi.po po/fr.po src/gui/skilldialog.cpp src/localplayer.cpp src/net/manaserv/generalhandler.cpp src/net/tmwa/buysellhandler.cpp src/net/tmwa/generalhandler.cpp src/net/tmwa/playerhandler.cpp src/net/tmwa/specialhandler.cpp src/winver.h
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 4a8dae17..8e9f13e8 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -208,11 +208,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));
}
}