diff Widgets/UnitDisplayWidget.cs @ 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 28b242612ad7
children c3415c6df551
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;
 		}