mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
Emit sizeHintChanged() when showing progressbar
This commit is contained in:
@@ -256,6 +256,7 @@ LastFmConfig::syncLovedTracks( uint page )
|
|||||||
m_ui->syncLovedTracks->setEnabled( false );
|
m_ui->syncLovedTracks->setEnabled( false );
|
||||||
m_ui->syncLovedTracks->setText( tr( "Synchronizing..." ) );
|
m_ui->syncLovedTracks->setText( tr( "Synchronizing..." ) );
|
||||||
m_ui->progressBar->show();
|
m_ui->progressBar->show();
|
||||||
|
emit sizeHintChanged();
|
||||||
|
|
||||||
NewClosure( reply, SIGNAL( finished() ), this, SLOT( onLovedFinished( QNetworkReply* ) ), reply );
|
NewClosure( reply, SIGNAL( finished() ), this, SLOT( onLovedFinished( QNetworkReply* ) ), reply );
|
||||||
|
|
||||||
@@ -319,12 +320,14 @@ LastFmConfig::onLovedFinished( QNetworkReply* reply )
|
|||||||
{
|
{
|
||||||
m_ui->syncLovedTracks->setText( "Failed" );
|
m_ui->syncLovedTracks->setText( "Failed" );
|
||||||
m_ui->progressBar->hide();
|
m_ui->progressBar->hide();
|
||||||
|
emit sizeHintChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch( lastfm::ws::ParseError e )
|
catch( lastfm::ws::ParseError e )
|
||||||
{
|
{
|
||||||
m_ui->syncLovedTracks->setText( "Failed" );
|
m_ui->syncLovedTracks->setText( "Failed" );
|
||||||
m_ui->progressBar->hide();
|
m_ui->progressBar->hide();
|
||||||
|
emit sizeHintChanged();
|
||||||
tDebug() << "XmlQuery error:" << e.message();
|
tDebug() << "XmlQuery error:" << e.message();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user