Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
changeset 165:2c17714ad71b
Fixes #295: Index out of bounds when changing unit size and clicking in equipment list
* Remove forced refresh of equipment on unit size change
* Revert r620 and remove code for unlistening and relistening
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 14 Jul 2010 20:02:20 +0000 |
parents | e0e5af2a934c |
children | 97fd4b6f823b |
files | FrmUnit.cs |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmUnit.cs Wed Jul 14 19:37:30 2010 +0000 +++ b/FrmUnit.cs Wed Jul 14 20:02:20 2010 +0000 @@ -545,7 +545,6 @@ if (obj is Unit && obj.Equals(unit)) { unitSize.Value = newValue; - RefreshUnitEquipment(); } } @@ -595,10 +594,7 @@ if (idx > -1) { - //HACK: Unsubscribe and resubscribe to prevent Index Out Of Bounds from selection changed event, as per ticket 295 - equipmentList.SelectedIndexChanged -= equipmentList_SelectedIndexChanged; equipmentList.Items[idx] = equipChoice; - equipmentList.SelectedIndexChanged += equipmentList_SelectedIndexChanged; } else {