[longomatch] Return a null project if no file is selected for Capture projects too



commit fe00a67e29f66674502174e266c261122514075d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat May 29 12:17:49 2010 +0200

    Return a null project if no file is selected for Capture projects too

 LongoMatch/Gui/Component/ProjectDetailsWidget.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index cae73fd..29acfe0 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -327,7 +327,7 @@ namespace LongoMatch.Gui.Component
 
 		public Project GetProject() {
 			if (useType != ProjectType.EditProject) {
-				if (Filename == "" && useType == ProjectType.FileProject)
+				if (Filename == "" && useType != ProjectType.FakeCaptureProject)
 					return null;
 				else {
 					if (useType == ProjectType.FakeCaptureProject){



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