1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

* Update the button status while the import is ongoing.

This commit is contained in:
Christian Muehlhaeuser 2012-05-22 11:48:05 +02:00
parent ac8703c9e7
commit 2558202a52

View File

@ -108,13 +108,9 @@ LastFmConfig::enableButton()
void
LastFmConfig::loadHistory()
{
if ( m_page == 1 )
{
m_ui->importHistory->setText( tr( "Importing History..." ) );
m_ui->importHistory->setEnabled( false );
m_ui->progressBar->show();
}
m_ui->importHistory->setText( tr( "Importing History..." ) );
m_ui->importHistory->setEnabled( false );
m_ui->progressBar->show();
QNetworkReply* reply = lastfm::User( m_ui->username->text().toLower() ).getRecentTracks( 200, m_page );
connect( reply, SIGNAL( finished() ), SLOT( onHistoryLoaded() ) );