[longomatch/fakelive] Close the player before unsetting anything in the EventsManager



commit cd3755d8c4f220887e56695b77033e342ebd7b61
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Mar 4 23:29:47 2010 +0100

    Close the player before unsetting anything in the EventsManager

 LongoMatch/Gui/MainWindow.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index f1c05e4..8363dc0 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -168,14 +168,7 @@ namespace LongoMatch.Gui
 			
 			Title = "LongoMatch";
 			ClearWidgets();
-			HideWidgets();			
-			if (openedProject != null) {
-				openedProject.Clear();
-				openedProject = null;
-				projectType = ProjectType.None;
-				eManager.OpenedProject = null;
-				eManager.OpenedProjectType = ProjectType.None;				
-			}
+			HideWidgets();	
 			if (projectType != ProjectType.NewFileProject){
 				playerbin1.Visible = true;
 				eManager.Capturer = null;
@@ -186,6 +179,13 @@ namespace LongoMatch.Gui
 				playerbin1.Close();
 				playerbin1.LogoMode = true;
 			}
+			if (openedProject != null) {
+				openedProject.Clear();
+				openedProject = null;
+				projectType = ProjectType.None;
+				eManager.OpenedProject = null;
+				eManager.OpenedProjectType = ProjectType.None;				
+			}			
 			playlistwidget2.Visible = playlistVisible;
 			rightvbox.Visible = playlistVisible;
 			noteswidget1.Visible = false;



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