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:
@@ -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() ) );
|
||||||
|
Reference in New Issue
Block a user