summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-08-04 21:07:52 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-08-04 21:07:52 -0400
commit5bb9a48477e4e28689a8409b5217cce42436e6f4 (patch)
treed69b5bb40ee3df6b3ef73ff3b32f8aed25e31428
parenta5dce80ff1aaa2066322fe55ba8228ba3991f663 (diff)
downloadsigen-5bb9a48477e4e28689a8409b5217cce42436e6f4.tar.gz
sigen-5bb9a48477e4e28689a8409b5217cce42436e6f4.tar.xz
sigen-5bb9a48477e4e28689a8409b5217cce42436e6f4.zip
Fix bounds setting on sellPrice
-rw-r--r--sigmodr/widgets/ItemUI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sigmodr/widgets/ItemUI.cpp b/sigmodr/widgets/ItemUI.cpp
index 4be61c4d..b24f257a 100644
--- a/sigmodr/widgets/ItemUI.cpp
+++ b/sigmodr/widgets/ItemUI.cpp
@@ -109,6 +109,7 @@ void ItemUI::Private::refreshGui()
ui_type->blockSignals(blocked);
ui_price->setMaximum(m_item->game()->rules()->maxMoney());
ui_price->setEnabled(0 < m_item->game()->rules()->maxMoney());
+ ui_sellPrice->setMaximum(m_item->game()->rules()->maxMoney());
ObjectUIPrivate::refreshGui();
}