[longomatch] Handle project type None
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Handle project type None
- Date: Sun, 18 Dec 2011 21:42:45 +0000 (UTC)
commit e71bea4fdec9d508cd4cd3b9d418e3851fde2552
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Dec 10 02:06:01 2011 +0100
Handle project type None
LongoMatch.Services/Services/ProjectsManager.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/Services/ProjectsManager.cs b/LongoMatch.Services/Services/ProjectsManager.cs
index 04fa2f5..2bc389b 100644
--- a/LongoMatch.Services/Services/ProjectsManager.cs
+++ b/LongoMatch.Services/Services/ProjectsManager.cs
@@ -339,9 +339,11 @@ namespace LongoMatch.Services
out captureSettings);
} else if (projectType == ProjectType.FakeCaptureProject) {
project = guiToolkit.NewFakeProject(Core.DB, Core.TemplatesService);
- } else {
+ } else if (projectType == ProjectType.FileProject) {
project = guiToolkit.NewFileProject(Core.DB, Core.TemplatesService);
Core.DB.AddProject(project);
+ } else {
+ project = null;
}
if (project != null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]