[longomatch] Don't go into play or pause if no file is loaded



commit 1dc7de2cba8a52c428ef40104e3b2a7a95739127
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Sep 6 00:58:09 2009 +0200

    Don't go into play or pause if no file is loaded

 CesarPlayer/Gui/PlayerBin.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/CesarPlayer/Gui/PlayerBin.cs b/CesarPlayer/Gui/PlayerBin.cs
index df84e37..b791faa 100644
--- a/CesarPlayer/Gui/PlayerBin.cs
+++ b/CesarPlayer/Gui/PlayerBin.cs
@@ -483,6 +483,8 @@ namespace LongoMatch.Gui
 
 		protected virtual void OnVideoboxButtonPressEvent (object o, Gtk.ButtonPressEventArgs args)
 		{
+			if(filename == null)
+				return;
 			if (!player.Playing)
 				Play();
 			else 



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