1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 02:09:48 +01:00

Emit sizeHintChanged() when showing progressbar

This commit is contained in:
Leo Franchi 2012-07-31 22:21:15 -04:00
parent eecceb134a
commit 18c50a3f02

View File

@ -256,6 +256,7 @@ LastFmConfig::syncLovedTracks( uint page )
m_ui->syncLovedTracks->setEnabled( false );
m_ui->syncLovedTracks->setText( tr( "Synchronizing..." ) );
m_ui->progressBar->show();
emit sizeHintChanged();
NewClosure( reply, SIGNAL( finished() ), this, SLOT( onLovedFinished( QNetworkReply* ) ), reply );
@ -319,12 +320,14 @@ LastFmConfig::onLovedFinished( QNetworkReply* reply )
{
m_ui->syncLovedTracks->setText( "Failed" );
m_ui->progressBar->hide();
emit sizeHintChanged();
}
}
catch( lastfm::ws::ParseError e )
{
m_ui->syncLovedTracks->setText( "Failed" );
m_ui->progressBar->hide();
emit sizeHintChanged();
tDebug() << "XmlQuery error:" << e.message();
}
}