# HG changeset patch # User IBBoard # Date 1267889020 0 # Node ID 4ec2083eb7552e4d1b4f72d472f14fde168fc796 # Parent 9641addafffeb91f125324b23c95a3a6b7808a94 Fixes #256: Ok button will not enable if army name entered before game type chosen * Apply patch from clutch110 to trigger form validation on race change diff -r 9641addafffe -r 4ec2083eb755 NewArmyDialog.cs --- a/NewArmyDialog.cs Sat Feb 27 14:03:46 2010 +0000 +++ b/NewArmyDialog.cs Sat Mar 06 15:23:40 2010 +0000 @@ -27,6 +27,7 @@ PopulateControls(); layout.gameSystems.CurrentIndex = -1; QObject.Connect(layout.gameSystems, SIGNAL("currentIndexChanged(int)"), GameSystemSelectionChanged); + QObject.Connect(layout.raceList, SIGNAL("currentRowChanged(int)"),RaceTypeChanged); QObject.Connect(layout.armyName, SIGNAL("textChanged(QString)"), ArmyNameChanged); QObject.Connect(layout.armySize, SIGNAL("valueChanged(int)"), ArmySizeChanged); SetOkayButtonState(false); @@ -85,6 +86,11 @@ return system; } + private void RaceTypeChanged() + { + ValidateForm(); + } + public Race GetSelectedRace() { Race race = null;