Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
changeset 107:775a34b78051
Fixes #225: Equipment amount control occasionally disables all options
* Make sure we re-enable the control when we have a non-null equipment item since we disable it when we have a null item
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 28 Nov 2009 16:33:26 +0000 |
parents | 3fae39208d06 |
children | 6871c9788ce1 |
files | UI/EquipmentAmountControl.cs |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/UI/EquipmentAmountControl.cs Sat Nov 28 16:29:03 2009 +0000 +++ b/UI/EquipmentAmountControl.cs Sat Nov 28 16:33:26 2009 +0000 @@ -55,6 +55,8 @@ { IgnoreWidgets(); + Enabled = true; + log.Debug("Equipment update"); bool equipIsRatioLimit = UnitEquipmentUtil.IsEquipmentRatioLimited(unit, equip); log.Debug("Equipment is ratio? " + (equipIsRatioLimit ? "yes" : "no"));