[longomatch] Don't save projects that wasn't loaded successfully



commit 5d61ffc73bb7f70f1bac7910ccbbc8b1c25f457e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Apr 5 16:29:37 2010 +0200

    Don't save projects that wasn't loaded successfully

 LongoMatch/Gui/MainWindow.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index eb04d9b..ee820bb 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -126,7 +126,7 @@ namespace LongoMatch.Gui
 					MessagePopup.PopupMessage(this, MessageType.Warning,
 					                          Catalog.GetString("The file associated to this project doesn't exist.")+"\n"
 					                          +Catalog.GetString("If the location of the file has changed try to edit it with the database manager."));
-					CloseOpenedProject(true);
+					CloseOpenedProject(false);
 					return;
 				} else {
 					Title = System.IO.Path.GetFileNameWithoutExtension(project.File.FilePath) + " - LongoMatch";
@@ -136,7 +136,7 @@ namespace LongoMatch.Gui
 					catch (GLib.GException ex) {
 						MessagePopup.PopupMessage(this, MessageType.Error,
 						                          Catalog.GetString("An error occurred opening this project:")+"\n"+ex.Message);
-						CloseOpenedProject(true);
+						CloseOpenedProject(false);
 						return;
 					}
 					playerbin1.LogoMode = false;
@@ -162,7 +162,7 @@ namespace LongoMatch.Gui
 				visitorplayerslisttreewidget.ProjectIsLive = true;
 				tagstreewidget1.ProjectIsLive = true;	
 				CaptureModeAction.Active = true;
-			}
+			}	
 			
 			playlistwidget2.Stop();
 			treewidget1.Project=project;



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