diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-21 21:12:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-21 21:12:31 +0300 |
commit | 73f36dd1934b3d0cdd52f13cab15480de4d0b9d2 (patch) | |
tree | b11d24afa4c3df44f80bfc10aac99e65e19d8c3a /src/gui | |
parent | f93a0893b8f5c54ff69acb0e0cc3bc6132cb547e (diff) | |
download | manaverse-73f36dd1934b3d0cdd52f13cab15480de4d0b9d2.tar.gz manaverse-73f36dd1934b3d0cdd52f13cab15480de4d0b9d2.tar.bz2 manaverse-73f36dd1934b3d0cdd52f13cab15480de4d0b9d2.tar.xz manaverse-73f36dd1934b3d0cdd52f13cab15480de4d0b9d2.zip |
Fix in personal shop price reset if item count changed.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/itemamountwindow.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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<int>(pow(10.0, mPrice)); + mItemPriceTextField->setValue(price); + mItemPriceSlide->setValue(price); } else if (eventId == "decPrice") { mPrice--; price = static_cast<int>(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<int>(log(static_cast<float>(price))); else mPrice = 0; + mItemPriceTextField->setValue(price); + mItemPriceSlide->setValue(price); } - mItemPriceTextField->setValue(price); - mItemPriceSlide->setValue(price); } } |