[longomatch/statebar: 12/13] Only ask for a number of player when editing the team template



commit 4c4980d6dedb1398f18b316d22a4785e3386d6d5
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Sep 18 21:19:15 2011 +0200

    Only ask for a number of player when editing the team template

 LongoMatch/Gui/Dialog/TemplatesManager.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/Dialog/TemplatesManager.cs b/LongoMatch/Gui/Dialog/TemplatesManager.cs
index 5d1a01e..1dd6514 100644
--- a/LongoMatch/Gui/Dialog/TemplatesManager.cs
+++ b/LongoMatch/Gui/Dialog/TemplatesManager.cs
@@ -176,8 +176,11 @@ namespace LongoMatch.Gui.Dialog
 		{
 			string name;
 			int count;
+			bool showCount;
 			List<string> availableTemplates = new List<string>();
-			EntryDialog ed = new  EntryDialog{ShowCount = true,
+			
+			showCount = typeof(T) == typeof(TeamTemplate);
+			EntryDialog ed = new  EntryDialog{ShowCount = showCount,
 				Title = Catalog.GetString("Template name")};
 			
 			foreach(string templateName in templatesProvider.TemplatesNames) {



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