summaryrefslogtreecommitdiffstats
path: root/pokemodr/PokemodUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/PokemodUI.cpp')
-rw-r--r--pokemodr/PokemodUI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pokemodr/PokemodUI.cpp b/pokemodr/PokemodUI.cpp
index 35e78162..c5a93474 100644
--- a/pokemodr/PokemodUI.cpp
+++ b/pokemodr/PokemodUI.cpp
@@ -45,7 +45,7 @@ PokemodUI::PokemodUI(Pokemod* p, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(pokemod, pokemod_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < pokemod->getPokemod()->getMapCount(); ++i)
{
const Map* m = pokemod->getPokemod()->getMap(i);
@@ -64,6 +64,7 @@ PokemodUI::PokemodUI(Pokemod* p, QWidget* parent) :
}
varTypechart->setVerticalHeaderLabels(types);
varTypechart->setHorizontalHeaderLabels(types);
+ emit(changed(false));
setGui();
}