Blob Blame History Raw
diff -uNr banshee-20091216.old/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSource.cs banshee-20091216/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSource.cs
--- banshee-20091216.old/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSource.cs	2009-12-16 20:20:03.000000000 +0100
+++ banshee-20091216/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSource.cs	2009-12-16 23:55:14.000000000 +0100
@@ -106,7 +106,9 @@
             Properties.Set<LastfmColumnController> ("TrackView.ColumnController", new LastfmColumnController ());
 
             // FIXME this is temporary until we split the GUI part from the non-GUI part
-            Properties.Set<ISourceContents> ("Nereid.SourceContents", new LazyLoadSourceContents<LastfmSourceContents> ());
+            // LastfmSourceContents must not be initialized lazily in order to get
+            // DataCore.UserAgent/CachePath correctly set by the static constructor
+            Properties.Set<ISourceContents> ("Nereid.SourceContents", new LastfmSourceContents ());
             Properties.Set<bool> ("Nereid.SourceContents.HeaderVisible", false);
 
             actions = new LastfmActions (this);