Work around the broken liblastfm package

This commit is contained in:
David Sansome 2010-09-29 19:26:02 +00:00
parent 8454d35385
commit a1a9943c72
1 changed files with 2 additions and 3 deletions

View File

@ -662,9 +662,8 @@ void LastFMService::FetchMoreTracksFinished() {
// Hacks like this remind me of Java... // Hacks like this remind me of Java...
if (QString(typeid(e).name()).contains("ParseError")) { if (QString(typeid(e).name()).contains("ParseError")) {
// dynamic_cast throws a std::bad_cast ... *boggle* // dynamic_cast throws a std::bad_cast ... *boggle*
lastfm::ws::ParseError& error = reinterpret_cast<lastfm::ws::ParseError&>(e); emit StreamError(tr("Couldn't load the last.fm radio station")
emit StreamError(tr("Couldn't load the last.fm radio station: %1") .arg(e.what()));
.arg(ErrorString(error.enumValue())));
} else { } else {
emit StreamError(tr("An unknown last.fm error occurred: %1").arg(e.what())); emit StreamError(tr("An unknown last.fm error occurred: %1").arg(e.what()));
} }