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:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user