[longomatch] Unload play from the player when this play has been deleted



commit f1258089ea5bb18d8bac47592841982c41527428
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Sep 22 18:39:11 2009 +0200

    Unload play from the player when this play has been deleted

 LongoMatch/Handlers/EventsManager.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Handlers/EventsManager.cs b/LongoMatch/Handlers/EventsManager.cs
index 4e905f3..fec1f34 100644
--- a/LongoMatch/Handlers/EventsManager.cs
+++ b/LongoMatch/Handlers/EventsManager.cs
@@ -220,7 +220,8 @@ namespace LongoMatch
 				localPlayersList.DeleteTimeNode(tNode,player);
 			foreach (int player in tNode.VisitorPlayers)
 				visitorPlayersList.DeleteTimeNode(tNode,player);
-			openedProject.DeleteTimeNode(tNode,section);			
+			openedProject.DeleteTimeNode(tNode,section);
+			player.CloseActualSegment();
 			timeline.QueueDraw();
 			MainClass.DB.UpdateProject(openedProject);			
 		}



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