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



commit 75ec0a081a5359e37ad1bda74ad79418136cba5d
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]