mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 11:50:37 +02:00
Remove some warnings
This commit is contained in:
@@ -129,7 +129,7 @@ LastFmConfig::loadHistory()
|
|||||||
void
|
void
|
||||||
LastFmConfig::onHistoryLoaded()
|
LastFmConfig::onHistoryLoaded()
|
||||||
{
|
{
|
||||||
int total = 0;
|
uint total = 0;
|
||||||
bool finished = false;
|
bool finished = false;
|
||||||
QNetworkReply* reply = qobject_cast< QNetworkReply* >( sender() );
|
QNetworkReply* reply = qobject_cast< QNetworkReply* >( sender() );
|
||||||
|
|
||||||
@@ -152,8 +152,8 @@ LastFmConfig::onHistoryLoaded()
|
|||||||
{
|
{
|
||||||
lastfm::XmlQuery stats = lfm.children( "recenttracks" ).first();
|
lastfm::XmlQuery stats = lfm.children( "recenttracks" ).first();
|
||||||
|
|
||||||
int page = stats.attribute( "page" ).toInt();
|
uint page = stats.attribute( "page" ).toUInt();
|
||||||
total = stats.attribute( "totalPages" ).toInt();
|
total = stats.attribute( "totalPages" ).toUInt();
|
||||||
|
|
||||||
m_ui->progressBar->setMaximum( total );
|
m_ui->progressBar->setMaximum( total );
|
||||||
m_ui->progressBar->setValue( page );
|
m_ui->progressBar->setValue( page );
|
||||||
|
Reference in New Issue
Block a user