diff --git a/src/DelegateConfigWrapper.cpp b/src/DelegateConfigWrapper.cpp index abd1de5ad..fccd60606 100644 --- a/src/DelegateConfigWrapper.cpp +++ b/src/DelegateConfigWrapper.cpp @@ -124,12 +124,9 @@ DelegateConfigWrapper::rejected() void DelegateConfigWrapper::updateSizeHint() { - hide(); setSizeGripEnabled( false ); setMinimumSize( sizeHint() ); setMaximumSize( sizeHint() ); - - show(); } diff --git a/src/accounts/lastfm/LastFmConfig.cpp b/src/accounts/lastfm/LastFmConfig.cpp index 9fd240abe..c9fdcf357 100644 --- a/src/accounts/lastfm/LastFmConfig.cpp +++ b/src/accounts/lastfm/LastFmConfig.cpp @@ -119,6 +119,8 @@ LastFmConfig::loadHistory() m_ui->importHistory->setEnabled( false ); m_ui->progressBar->show(); + emit sizeHintChanged(); + QNetworkReply* reply = lastfm::User( m_ui->username->text().toLower() ).getRecentTracks( 200, m_page ); connect( reply, SIGNAL( finished() ), SLOT( onHistoryLoaded() ) ); } diff --git a/src/accounts/lastfm/LastFmConfig.h b/src/accounts/lastfm/LastFmConfig.h index cc6bfc8fb..c7c53f2b9 100644 --- a/src/accounts/lastfm/LastFmConfig.h +++ b/src/accounts/lastfm/LastFmConfig.h @@ -49,6 +49,9 @@ private slots: void loadHistory(); void onHistoryLoaded(); +signals: + void sizeHintChanged(); + private: LastFmAccount* m_account; Ui_LastFmConfig* m_ui;