banshee r4068 - in trunk/banshee: . src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4068 - in trunk/banshee: . src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio
- Date: Mon, 2 Jun 2008 20:00:48 +0000 (UTC)
Author: gburt
Date: Mon Jun 2 20:00:47 2008
New Revision: 4068
URL: http://svn.gnome.org/viewvc/banshee?rev=4068&view=rev
Log:
2008-06-02 Gabriel Burt <gabriel burt gmail com>
* src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs:
Avoid NRE, fixes BGO #535909.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs
Modified: trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs Mon Jun 2 20:00:47 2008
@@ -410,7 +410,7 @@
updating = true;
}
- bool have_user = (lastfm.Account.UserName != null);
+ bool have_user = (lastfm.Account != null && lastfm.Account.UserName != null);
this["LastfmAddAction"].IsImportant = ServiceManager.PlaybackController.Source is LastfmSource;
this["LastfmAddAction"].Sensitive = have_user;
this["LastfmSortAction"].Sensitive = have_user;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]