Permalink
Browse files

Also use the saved last station when cuing a station, not sure this c…

…an ever happen though.
  • Loading branch information...
1 parent dbe624d commit 7c7c2f8864c7dd0a052b4cde74ab8492564d7a44 @eartle eartle committed Apr 24, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 app/client/Services/RadioService/RadioService.cpp
@@ -125,6 +125,16 @@ RadioService::playNext( const RadioStation& station )
{
m_station = station;
+ if ( m_station.url() == "" )
+ {
+ unicorn::UserSettings us;
+ QString stationUrl = us.value( "lastStationUrl", "" ).toString();
+ QString stationTitle = us.value( "lastStationTitle", tr( "A Radio Station" ) ).toString();
+
+ m_station.setUrl( stationUrl );
+ m_station.setTitle( stationTitle );
+ }
+
// Make sure the radio station has the radio options from the settings
bool ok;
m_station.setRep( unicorn::AppSettings().value( "rep", 0.5 ).toDouble( &ok ) );

0 comments on commit 7c7c2f8

Please sign in to comment.