[longomatch] Reset team tagger selection after adding a new event
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Reset team tagger selection after adding a new event
- Date: Wed, 24 Sep 2014 20:23:57 +0000 (UTC)
commit f6bc2861a539542843f995d3178d25b0675b4900
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Sep 5 16:23:02 2014 +0200
Reset team tagger selection after adding a new event
LongoMatch.Drawing/Widgets/TeamTagger.cs | 6 ++++++
LongoMatch.GUI/Gui/Component/CodingWidget.cs | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Drawing/Widgets/TeamTagger.cs b/LongoMatch.Drawing/Widgets/TeamTagger.cs
index fef23ff..d3d34a7 100644
--- a/LongoMatch.Drawing/Widgets/TeamTagger.cs
+++ b/LongoMatch.Drawing/Widgets/TeamTagger.cs
@@ -86,6 +86,12 @@ namespace LongoMatch.Drawing.Widgets
}
}
+ public void ResetSelection ()
+ {
+ tagger.ResetSelection ();
+ widget.ReDraw ();
+ }
+
public void Select (List<Player> players)
{
tagger.Select (players);
diff --git a/LongoMatch.GUI/Gui/Component/CodingWidget.cs b/LongoMatch.GUI/Gui/Component/CodingWidget.cs
index 4015846..9d443d4 100644
--- a/LongoMatch.GUI/Gui/Component/CodingWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/CodingWidget.cs
@@ -254,7 +254,7 @@ namespace LongoMatch.Gui.Component
if (eventType.TagFieldPosition || eventType.TagGoalPosition ||
eventType.TagHalfFieldPosition) {
Config.GUIToolkit.EditPlay (play, project, false, true, false, false);
}
- teamtagger.ClearSelection ();
+ teamtagger.ResetSelection ();
Config.EventsBroker.EmitNewPlay (play);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]