1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 06:36:55 +02: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

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