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 diff
     1.1 --- a/NewArmyDialog.cs	Sat Feb 27 14:03:46 2010 +0000
     1.2 +++ b/NewArmyDialog.cs	Sat Mar 06 15:23:40 2010 +0000
     1.3 @@ -27,6 +27,7 @@
     1.4  			PopulateControls();
     1.5  			layout.gameSystems.CurrentIndex = -1;
     1.6  			QObject.Connect(layout.gameSystems, SIGNAL("currentIndexChanged(int)"), GameSystemSelectionChanged);
     1.7 +			QObject.Connect(layout.raceList, SIGNAL("currentRowChanged(int)"),RaceTypeChanged);
     1.8  			QObject.Connect(layout.armyName, SIGNAL("textChanged(QString)"), ArmyNameChanged);
     1.9  			QObject.Connect(layout.armySize, SIGNAL("valueChanged(int)"), ArmySizeChanged);
    1.10  			SetOkayButtonState(false);
    1.11 @@ -85,6 +86,11 @@
    1.12  			return system;
    1.13  		}
    1.14  		
    1.15 +		private void RaceTypeChanged() 
    1.16 +		{
    1.17 +			ValidateForm(); 
    1.18 +		}
    1.19 +		
    1.20  		public Race GetSelectedRace()
    1.21  		{
    1.22  			Race race = null;