summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-21 21:12:31 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-21 21:12:31 +0300
commit73f36dd1934b3d0cdd52f13cab15480de4d0b9d2 (patch)
treeb11d24afa4c3df44f80bfc10aac99e65e19d8c3a
parentf93a0893b8f5c54ff69acb0e0cc3bc6132cb547e (diff)
downloadmanaverse-73f36dd1934b3d0cdd52f13cab15480de4d0b9d2.tar.gz
manaverse-73f36dd1934b3d0cdd52f13cab15480de4d0b9d2.tar.bz2
manaverse-73f36dd1934b3d0cdd52f13cab15480de4d0b9d2.tar.xz
manaverse-73f36dd1934b3d0cdd52f13cab15480de4d0b9d2.zip
Fix in personal shop price reset if item count changed.
-rw-r--r--src/gui/itemamountwindow.cpp8
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);
}
}