[banshee] [Nereid] Prevent crash on startup in MeeGo



commit 9eaeda6887fa80ab68d3282ceb39f40bd47fe181
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Sun Nov 14 12:42:43 2010 -0600

    [Nereid] Prevent crash on startup in MeeGo

 src/Clients/Nereid/Nereid/PlayerInterface.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/PlayerInterface.cs b/src/Clients/Nereid/Nereid/PlayerInterface.cs
index 6978dde..8e54bc0 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -98,10 +98,10 @@ namespace Nereid
 
         private void SetSimple (bool simple)
         {
-            main_menu.Visible =
-            source_box.Visible =
-            footer_toolbar.Visible =
-            track_info_container.Visible = !simple;
+            var widgets = new Widget [] { main_menu, source_box, footer_toolbar, track_info_container };
+            foreach (var w in widgets.Where (w => w != null)) {
+                w.Visible = !simple;
+            }
         }
 
         public PlayerInterface () : base (Catalog.GetString ("Banshee Media Player"), "player_window", 1024, 700)



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