Fix albumcover searcher dialog not showing up on macOS

This commit is contained in:
Jonas Kvinge 2020-12-24 16:56:00 +01:00
parent b6a9e1a996
commit cb5222e4d6
1 changed files with 8 additions and 0 deletions

View File

@ -160,6 +160,14 @@ void AlbumCoverSearcher::Init(AlbumCoverFetcher *fetcher) {
QImage AlbumCoverSearcher::Exec(const QString &artist, const QString &album) {
#ifdef Q_OS_MACOS
ui_->artist->clear();
ui_->album->clear();
model_->clear();
cover_loading_tasks_.clear();
show();
#endif
ui_->artist->setText(artist);
ui_->album->setText(album);
ui_->artist->setFocus();