1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 18:35:16 +01:00

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

View File

@ -662,9 +662,8 @@ void LastFMService::FetchMoreTracksFinished() {
// Hacks like this remind me of Java...
if (QString(typeid(e).name()).contains("ParseError")) {
// 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: %1")
.arg(ErrorString(error.enumValue())));
emit StreamError(tr("Couldn't load the last.fm radio station")
.arg(e.what()));
} else {
emit StreamError(tr("An unknown last.fm error occurred: %1").arg(e.what()));
}