changeset 58:7bba99c368c8

Re #60: Add UI to add/remove/edit weapons in GTK * Fix GTK error about tree model columns by populating the store correctly
author IBBoard <dev@ibboard.co.uk>
date Thu, 26 Aug 2010 19:34:57 +0000
parents 293d204e40db
children c3415c6df551
files Widgets/UnitDisplayWidget.cs
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Widgets/UnitDisplayWidget.cs	Thu Aug 26 19:30:22 2010 +0000
+++ b/Widgets/UnitDisplayWidget.cs	Thu Aug 26 19:34:57 2010 +0000
@@ -93,7 +93,11 @@
 			
 			
 			TreeStore model = new TreeStore(typeof(UnitEquipmentItem));
-			model.AppendValues(unit.GetEquipment());
+			foreach (UnitEquipmentItem item in unit.GetEquipment())
+			{
+				model.AppendValues(item);
+			}
+			
 			equipmentList.Model = model;
 		}