summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-01-20 01:11:34 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-01-20 01:11:34 -0500
commit5e31e49db9d049f5c668a8ff5c2e258ba87d0245 (patch)
tree75262b425ebf405ff47b56fccf34694dc9ca8af1
parentb073a83a9e064fac367892ca9a8e1b6d2adb9a52 (diff)
Item sellPrice is now disabled when it is not sellable
-rw-r--r--sigmodr/ItemUI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sigmodr/ItemUI.cpp b/sigmodr/ItemUI.cpp
index 8197543d..92f4b980 100644
--- a/sigmodr/ItemUI.cpp
+++ b/sigmodr/ItemUI.cpp
@@ -58,6 +58,7 @@ void Sigmodr::ItemUI::setGui()
m_lastType = qobject_cast<Sigmod::Item*>(modified())->type();
varPrice->setValue(qobject_cast<Sigmod::Item*>(modified())->price());
varSellPrice->setValue(qobject_cast<Sigmod::Item*>(modified())->sellPrice());
+ varSellPrice->setEnabled(qobject_cast<Sigmod::Item*>(modified())->sellable());
if (resetWeight)
{
const Sigmod::ItemType* itemType = sigmod()->itemTypeById(qobject_cast<Sigmod::Item*>(modified())->type());