From a1a9943c727b1c906121f673109cd98c30dd6c13 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Wed, 29 Sep 2010 19:26:02 +0000 Subject: [PATCH] Work around the broken liblastfm package --- src/radio/lastfmservice.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/radio/lastfmservice.cpp b/src/radio/lastfmservice.cpp index cfed16494..a0a081a97 100644 --- a/src/radio/lastfmservice.cpp +++ b/src/radio/lastfmservice.cpp @@ -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(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())); }