banshee r4327 - in trunk/banshee: . src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio



Author: blorentz
Date: Tue Aug  5 20:31:22 2008
New Revision: 4327
URL: http://svn.gnome.org/viewvc/banshee?rev=4327&view=rev

Log:
2008-08-05  Bertrand Lorentz  <bertrand lorentz gmail com>

	* src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs:
	Patch from FÃlix Velasco to select the proper source when showing the radio
	station editor (BGO #539397).



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs

Modified: trunk/banshee/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs	Tue Aug  5 20:31:22 2008
@@ -81,11 +81,15 @@
             
             Properties.SetString ("TrackPropertiesActionLabel", Catalog.GetString ("Edit Station"));
             Properties.Set<InvokeHandler> ("TrackPropertiesActionHandler", delegate {
-                if (TrackModel.SelectedItems == null || TrackModel.SelectedItems.Count <= 0) {
+                ITrackModelSource active_track_model_source =
+                    (ITrackModelSource) ServiceManager.SourceManager.ActiveSource;
+
+                if (active_track_model_source.TrackModel.SelectedItems == null ||
+                    active_track_model_source.TrackModel.SelectedItems.Count <= 0) {
                     return;
                 }
                 
-                foreach (TrackInfo track in TrackModel.SelectedItems) {
+                foreach (TrackInfo track in active_track_model_source.TrackModel.SelectedItems) {
                     DatabaseTrackInfo station_track = track as DatabaseTrackInfo;
                     if (station_track != null) {
                         EditStation (station_track);



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