summaryrefslogtreecommitdiffstats
path: root/pokemodr/MoveUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/MoveUI.cpp')
-rw-r--r--pokemodr/MoveUI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pokemodr/MoveUI.cpp b/pokemodr/MoveUI.cpp
index f4f052d2..1b8dae58 100644
--- a/pokemodr/MoveUI.cpp
+++ b/pokemodr/MoveUI.cpp
@@ -38,7 +38,7 @@ MoveUI::MoveUI(Move* m, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(move, move_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < move->getPokemod()->getTypeCount(); ++i)
{
const Type* t = move->getPokemod()->getType(i);
@@ -48,6 +48,7 @@ MoveUI::MoveUI(Move* m, QWidget* parent) :
varTarget->addItems(Move::TargetStr);
varTargetChoice->addItems(Move::ChoiceStr);
varNumTargets->setMaximum(move->getPokemod()->getRules()->getMaxFight());
+ emit(changed(false));
setGui();
}