[longomatch] Connect signals after setting the team



commit f7ce20cfc4157d013535725f7893f51344f675e7
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Jan 27 21:34:32 2012 +0100

    Connect signals after setting the team

 LongoMatch.GUI/Gui/Component/TaggerWidget.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/TaggerWidget.cs b/LongoMatch.GUI/Gui/Component/TaggerWidget.cs
index 200ecaa..6a78110 100644
--- a/LongoMatch.GUI/Gui/Component/TaggerWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/TaggerWidget.cs
@@ -38,8 +38,6 @@ namespace LongoMatch.Gui.Component
 			this.Build();
 			table1.NColumns = 1;
 			table1.NRows = 1;
-			localcheckbutton.Toggled += OnCheckbuttonToggled;
-			visitorcheckbutton.Toggled += OnCheckbuttonToggled;
 		}
 		
 		public void SetData (Play play, string localTeam, string visitorTeam) {
@@ -48,6 +46,8 @@ namespace LongoMatch.Gui.Component
 			visitorcheckbutton.Label = visitorTeam;
 			localcheckbutton.Active = play.Team == Team.LOCAL || play.Team == Team.BOTH;
 			visitorcheckbutton.Active = play.Team == Team.VISITOR || play.Team == Team.BOTH;
+			localcheckbutton.Toggled += OnCheckbuttonToggled;
+			visitorcheckbutton.Toggled += OnCheckbuttonToggled;
 		}
 		
 		public void AddSubCategory(TagSubCategory subcat, StringTagStore tags){
@@ -78,6 +78,7 @@ namespace LongoMatch.Gui.Component
 				else
 					play.Team = Team.NONE;
 			}
+			Log.Debug("Team tagged: " + play.Team);
 		}
 	}
 }
\ No newline at end of file



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]