Work around the broken liblastfm package
This commit is contained in:
parent
8454d35385
commit
a1a9943c72
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue