[longomatch] Handle opening file errors correctly
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Handle opening file errors correctly
- Date: Mon, 7 Jul 2014 11:22:45 +0000 (UTC)
commit a181e7252f58e2ec057bb1329966dcae52538b43
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed May 21 18:20:50 2014 +0200
Handle opening file errors correctly
LongoMatch.Services/Services/ProjectsManager.cs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/Services/ProjectsManager.cs b/LongoMatch.Services/Services/ProjectsManager.cs
index de977b7..5073d88 100644
--- a/LongoMatch.Services/Services/ProjectsManager.cs
+++ b/LongoMatch.Services/Services/ProjectsManager.cs
@@ -184,7 +184,12 @@ namespace LongoMatch.Services
Capturer = newAnalysiswindow.Capturer;
if (newAnalysiswindow != analysisWindow) {
analysisWindow = newAnalysiswindow;
- analysisWindow.CloseOpenedProjectEvent += () => {SaveCaptureProject
(OpenedProject);};
+ analysisWindow.CloseOpenedProjectEvent += () => {
+ if (projectType == ProjectType.FileProject) {
+ CloseOpenedProject (false);
+ } else {
+ SaveCaptureProject (OpenedProject);}
+ };
}
if (newController != projectOptionsController) {
projectOptionsController = newController;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]