From eecceb134afb86e160947432f7c281775cf3f2ac Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 31 Jul 2012 21:33:17 -0400 Subject: [PATCH] Show UI if fetching from last.fm failed --- src/libtomahawk/accounts/lastfm/LastFmConfig.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp b/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp index efc2ea1f5..9ae5f6729 100644 --- a/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp +++ b/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp @@ -315,9 +315,16 @@ LastFmConfig::onLovedFinished( QNetworkReply* reply ) syncLovedTracks( thisPage + 1 ); } } + else + { + m_ui->syncLovedTracks->setText( "Failed" ); + m_ui->progressBar->hide(); + } } catch( lastfm::ws::ParseError e ) { + m_ui->syncLovedTracks->setText( "Failed" ); + m_ui->progressBar->hide(); tDebug() << "XmlQuery error:" << e.message(); } }