[longomatch] Use helper function to prevent adding twice the same tag



commit 2cecbff8b1960c17c0868a5fd1fae9b1779f9fde
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Dec 24 14:49:10 2009 +0100

    Use helper function to prevent adding twice the same tag

 LongoMatch/Gui/Component/TaggerWidget.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/TaggerWidget.cs b/LongoMatch/Gui/Component/TaggerWidget.cs
index 13cb1fb..40b5fcf 100644
--- a/LongoMatch/Gui/Component/TaggerWidget.cs
+++ b/LongoMatch/Gui/Component/TaggerWidget.cs
@@ -133,7 +133,7 @@ namespace LongoMatch.Gui.Component
 			if (tagsDict.TryGetValue(tag, out button))
 				button.Active = true;
 			else
-				AddTagWidget(new Tag(entry1.Text), true);	
+				AddTag(entry1.Text, true);	
 			entry1.Text = "";
 		}
 



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