banshee r3540 - in trunk/banshee: .	src/Core/Banshee.ThickClient/Banshee.Gui
- From: wbolster svn gnome org
 
- To: svn-commits-list gnome org
 
- Subject: banshee r3540 - in trunk/banshee: .	src/Core/Banshee.ThickClient/Banshee.Gui
 
- Date: Tue, 25 Mar 2008 20:55:40 +0000 (GMT)
 
Author: wbolster
Date: Tue Mar 25 20:55:39 2008
New Revision: 3540
URL: http://svn.gnome.org/viewvc/banshee?rev=3540&view=rev
Log:
2008-03-25  Wouter Bolsterlee  <wbolster svn gnome org>
	reviewed by: Gabriel Burt  <gabriel burt gmail com>
	* src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs:
	Correctly guard against null SourceView instances, so
	that non-Nereid clients without a SourceView do not
	instantly crash upon startup. Patch suggested by Gabriel
	Burt on IRC.
Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs
Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs	Tue Mar 25 20:55:39 2008
@@ -59,7 +59,7 @@
         }
 
         public Source ActionSource {
-            get { return SourceView.HighlightedSource ?? ActiveSource; }
+            get { return ((SourceView == null) ? null :  SourceView.HighlightedSource) ?? ActiveSource; }
         }
 
         public override PrimarySource ActivePrimarySource {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]