Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
changeset 25:4ec2083eb755
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
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 06 Mar 2010 15:23:40 +0000 |
parents | 9641addafffe |
children | 55d4f16c982b |
files | NewArmyDialog.cs |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;