summaryrefslogtreecommitdiff
path: root/src/gui/itemamountwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemamountwindow.cpp')
-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);
}
}