[longomatch/newui: 124/157] Fix creation of live projects
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/newui: 124/157] Fix creation of live projects
- Date: Mon, 1 Sep 2014 09:51:47 +0000 (UTC)
commit 0424c37cd7597319b0a72ff0beb12eec3fe21c1b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Aug 28 17:55:42 2014 +0200
Fix creation of live projects
LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index 96c1367..3748b29 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -404,6 +404,9 @@ namespace LongoMatch.Gui.Panel
} else {
notebook1.Page --;
}
+ if (notebook1.Page == PROJECT_TYPE) {
+ project = null;
+ }
UpdateTitle ();
}
@@ -416,6 +419,12 @@ namespace LongoMatch.Gui.Panel
if (!CreateProject ()) {
return;
}
+ if (projectType == ProjectType.CaptureProject ||
+ projectType == ProjectType.FakeCaptureProject ||
+ projectType == ProjectType.URICaptureProject) {
+ Config.EventsBroker.EmitOpenNewProject (project, projectType,
captureSettings);
+ return;
+ }
} else if (notebook1.Page == PROJECT_PERIODS) {
if (CreateProject ()) {
if (projectType == ProjectType.EditProject) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]