1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

Show UI if fetching from last.fm failed

This commit is contained in:
Leo Franchi
2012-07-31 21:33:17 -04:00
parent a463c02273
commit eecceb134a

View File

@@ -315,9 +315,16 @@ LastFmConfig::onLovedFinished( QNetworkReply* reply )
syncLovedTracks( thisPage + 1 ); syncLovedTracks( thisPage + 1 );
} }
} }
else
{
m_ui->syncLovedTracks->setText( "Failed" );
m_ui->progressBar->hide();
}
} }
catch( lastfm::ws::ParseError e ) catch( lastfm::ws::ParseError e )
{ {
m_ui->syncLovedTracks->setText( "Failed" );
m_ui->progressBar->hide();
tDebug() << "XmlQuery error:" << e.message(); tDebug() << "XmlQuery error:" << e.message();
} }
} }