[longomatch] Unloaded the loaded play on removal
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Unloaded the loaded play on removal
- Date: Tue, 28 Oct 2014 09:53:15 +0000 (UTC)
commit 9eed41a474fcf112a658cbca361eefb80b993e02
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Oct 23 19:36:42 2014 +0200
Unloaded the loaded play on removal
LongoMatch.Services/Services/EventsManager.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Services/Services/EventsManager.cs b/LongoMatch.Services/Services/EventsManager.cs
index 145cdd7..64f2ec8 100644
--- a/LongoMatch.Services/Services/EventsManager.cs
+++ b/LongoMatch.Services/Services/EventsManager.cs
@@ -119,6 +119,9 @@ namespace LongoMatch.Services
if (projectType == ProjectType.FileProject) {
Save (openedProject);
}
+ if (loadedPlay != null && plays.Contains (loadedPlay)) {
+ Config.EventsBroker.EmitEventLoaded (null);
+ }
filter.Update ();
}
@@ -389,10 +392,11 @@ namespace LongoMatch.Services
Config.GUIToolkit.EditPlay (loadedPlay, openedProject, true, true, true,
true);
break;
case KeyAction.DeleteEvent:
- DeletePlays (new List<TimelineEvent> {loadedPlay});
+ if (loadedPlay != null) {
+ DeletePlays (new List<TimelineEvent> {loadedPlay});
+ }
break;
}
-
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]