diff options
Diffstat (limited to 'pokemodr/ItemUI.cpp')
| -rw-r--r-- | pokemodr/ItemUI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pokemodr/ItemUI.cpp b/pokemodr/ItemUI.cpp index 0411322d..5f4b4e1d 100644 --- a/pokemodr/ItemUI.cpp +++ b/pokemodr/ItemUI.cpp @@ -38,7 +38,7 @@ ItemUI::ItemUI(Item* i, QWidget* parent) : setupUi(this); QMetaObject::connectSlotsByName(this); setObjects(item, item_mod); - connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool))); + connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); for (int i = 0; i < item->getPokemod()->getItemTypeCount(); ++i) { const ItemType* it = item->getPokemod()->getItemType(i); @@ -46,6 +46,7 @@ ItemUI::ItemUI(Item* i, QWidget* parent) : varType->setItemData(i, it->getId()); } varPrice->setMaximum(item->getPokemod()->getRules()->getMaxMoney()); + emit(changed(false)); setGui(); } |
