[longomatch] Don't try to get the capture properties if it's a fake live capture



commit 60ef22930f0d4ea94325d842297c4c84294c8fe7
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Jun 7 01:03:36 2010 +0200

    Don't try to get the capture properties if it's a fake live capture

 LongoMatch/Utils/ProjectUtils.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Utils/ProjectUtils.cs b/LongoMatch/Utils/ProjectUtils.cs
index 154c098..4ec29ff 100644
--- a/LongoMatch/Utils/ProjectUtils.cs
+++ b/LongoMatch/Utils/ProjectUtils.cs
@@ -222,7 +222,8 @@ namespace LongoMatch.Utils
 				else {
 					/* We are now ready to create the new project */
 					project = npd.Project;
-					captureProps = npd.CaptureProperties;
+					if (projectType == ProjectType.CaptureProject)
+						captureProps = npd.CaptureProperties;
 					npd.Destroy();
 					break;
 				}



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