[longomatch] Protect with try and catch b/c it can throw an Exception



commit 0e974200ae106ef5b00caa98035b273e08666674
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Aug 23 21:15:17 2010 +0200

    Protect with try and catch b/c it can throw an Exception

 LongoMatch/Gui/MainWindow.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index 0f47bc6..31a7e4b 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -295,7 +295,11 @@ namespace LongoMatch.Gui
 
 		private void SaveProject() {
 			if (openedProject != null && projectType == ProjectType.FileProject) {
-				MainClass.DB.UpdateProject(openedProject);
+				try {
+					MainClass.DB.UpdateProject(openedProject);
+				} catch (Exception e){
+					/* FIXME: Do log error */
+				}
 			} else if (projectType == ProjectType.FakeCaptureProject)
 				ProjectUtils.SaveFakeLiveProject(openedProject, this);
 		}



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