From 73f36dd1934b3d0cdd52f13cab15480de4d0b9d2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Apr 2013 21:12:31 +0300 Subject: Fix in personal shop price reset if item count changed. --- src/gui/itemamountwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gui/itemamountwindow.cpp') diff --git a/src/gui/itemamountwindow.cpp b/src/gui/itemamountwindow.cpp index 6aeec37d2..deeca6df5 100644 --- a/src/gui/itemamountwindow.cpp +++ b/src/gui/itemamountwindow.cpp @@ -392,11 +392,15 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event) { mPrice++; price = static_cast(pow(10.0, mPrice)); + mItemPriceTextField->setValue(price); + mItemPriceSlide->setValue(price); } else if (eventId == "decPrice") { mPrice--; price = static_cast(pow(10.0, mPrice)); + mItemPriceTextField->setValue(price); + mItemPriceSlide->setValue(price); } else if (eventId == "slidePrice") { @@ -405,9 +409,9 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event) mPrice = static_cast(log(static_cast(price))); else mPrice = 0; + mItemPriceTextField->setValue(price); + mItemPriceSlide->setValue(price); } - mItemPriceTextField->setValue(price); - mItemPriceSlide->setValue(price); } } -- cgit v1.2.3-60-g2f50