[longomatch] Really fix vackup live projects files



commit ae4f086562539c1b99de9eb0d5bad090806bc633
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Apr 9 18:47:52 2013 +0200

    Really fix vackup live projects files

 LongoMatch.Services/Services/ProjectsManager.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Services/Services/ProjectsManager.cs b/LongoMatch.Services/Services/ProjectsManager.cs
index 829b3f3..fb15841 100644
--- a/LongoMatch.Services/Services/ProjectsManager.cs
+++ b/LongoMatch.Services/Services/ProjectsManager.cs
@@ -105,8 +105,10 @@ namespace LongoMatch.Services
                        } catch(Exception ex) {
                                Log.Exception(ex);
                                Log.Debug ("Backing up project to file");
-                               string projectFile = filePath + "-" + DateTime.Now;
-                               projectFile = projectFile.Replace("-", "_").Replace(" ", "_").Replace(":", 
"_").Replace("/", "_");
+                               string projectFile = DateTime.Now.ToString().Replace("-", "_");
+                               projectFile = projectFile.Replace(":", "_");
+                               projectFile = projectFile.Replace(" ", "_");
+                               projectFile = filePath + "_" + projectFile;
                                Project.Export(OpenedProject, projectFile);
                                guiToolkit.ErrorMessage(Catalog.GetString("An error occured saving the 
project:\n")+ex.Message+ "\n\n"+
                                        Catalog.GetString("The video file and a backup of the project has 
been "+


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