[longomatch] Remove redundant check. UpdateProject() will only be called for EditProject type



commit f94289b476b80cb21a02f5fb9939cacae8e275d5
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Mar 7 18:06:22 2010 +0100

    Remove redundant check. UpdateProject() will only be called for EditProject type

 LongoMatch/Gui/Component/ProjectDetailsWidget.cs |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index b64c693..f635dcc 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -237,9 +237,7 @@ namespace LongoMatch.Gui.Component
 		}
 
 		public void UpdateProject() {
-			if (useType == ProjectType.EditProject ||
-			    useType == ProjectType.NewFileProject)
-				project.File= mFile;			
+			project.File= mFile;			
 			project.LocalName = localTeamEntry.Text;
 			project.VisitorName = visitorTeamEntry.Text;
 			project.LocalGoals = (int)localSpinButton.Value;



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