[longomatch/win32] Don't delete newly converted template



commit 7b4ab2d601d7c5123b88e8d9d85a4873467d9a16
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Aug 21 00:10:52 2009 +0200

    Don't delete newly converted template

 LongoMatch/Compat/0.0/TemplatesMigrator.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/Compat/0.0/TemplatesMigrator.cs b/LongoMatch/Compat/0.0/TemplatesMigrator.cs
index ae19569..2572d82 100644
--- a/LongoMatch/Compat/0.0/TemplatesMigrator.cs
+++ b/LongoMatch/Compat/0.0/TemplatesMigrator.cs
@@ -85,9 +85,9 @@ namespace LongoMatch.Compat
 					}
 				}
 				newFileName = Path.Combine(MainClass.TemplatesDir(),Path.GetFileName(templateFile));
-				SectionsWriter.UpdateTemplate(newFileName,newTemplate);
 				File.Copy(templateFile ,templateFile+".old",true);
-				File.Delete(templateFile);		
+				File.Delete(templateFile);	
+				SectionsWriter.UpdateTemplate(newFileName,newTemplate);
 				SendEvent(String.Format("Template {0} converted successfully!",Path.GetFileName(templateFile)));
 			}
 			SendEvent(DONE);



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