[longomatch] Return a null project if File is null



commit 116c51a7d1b0078d584c6fe11fa7a51e07e3a142
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Mar 7 18:07:03 2010 +0100

    Return a null project if  File is null

 LongoMatch/Gui/Component/ProjectDetailsWidget.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index f635dcc..22dccd6 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -274,6 +274,10 @@ namespace LongoMatch.Gui.Component
 				}				
 			}
 			else {
+				// New imported project from a fake live analysis will have a null File
+				// return null to force selecting a new file.
+				if (mFile == null)
+					return null;
 				UpdateProject();
 				return project;
 			}



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