Fix QSearchField on macOS
This commit is contained in:
@@ -248,6 +248,8 @@ void AlbumCoverManager::showEvent(QShowEvent *e) {
|
||||
Reset();
|
||||
}
|
||||
|
||||
QMainWindow::showEvent(e);
|
||||
|
||||
}
|
||||
|
||||
void AlbumCoverManager::closeEvent(QCloseEvent *e) {
|
||||
@@ -270,6 +272,8 @@ void AlbumCoverManager::closeEvent(QCloseEvent *e) {
|
||||
ui_->artists->clear();
|
||||
ui_->albums->clear();
|
||||
|
||||
QMainWindow::closeEvent(e);
|
||||
|
||||
}
|
||||
|
||||
void AlbumCoverManager::LoadGeometry() {
|
||||
|
||||
@@ -163,14 +163,6 @@ void AlbumCoverSearcher::Init(AlbumCoverFetcher *fetcher) {
|
||||
|
||||
AlbumCoverImageResult 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();
|
||||
|
||||
Reference in New Issue
Block a user