From a5d7ffcbdfaf597081968f1b7764007e668d9b0c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 25 Feb 2008 21:14:18 +0000 Subject: [FIX] Sizers fixed in KTabWidgets [FIX] Apply/Discard buttons fixed [FIX] Window title now fixed git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@85 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/NatureUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pokemodr/NatureUI.cpp') diff --git a/pokemodr/NatureUI.cpp b/pokemodr/NatureUI.cpp index d1dc4f78..a84afa97 100644 --- a/pokemodr/NatureUI.cpp +++ b/pokemodr/NatureUI.cpp @@ -38,9 +38,10 @@ NatureUI::NatureUI(Nature* n, QWidget* parent) : setupUi(this); QMetaObject::connectSlotsByName(this); setObjects(nature, nature_mod); - connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool))); + connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); const bool isSplit = nature->getPokemod()->getRules()->getSpecialSplit(); varStat->addItems((isSplit ? Pokemod::StatRBYStr : Pokemod::StatGSCStr).mid(0, isSplit ? Pokemod::ST_End_RBY : Pokemod::ST_End_GSC)); + emit(changed(false)); setGui(); } -- cgit