mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 12:02:48 +01:00
Use LineEdit::set_focus() instead of QWidget::setFocus() on LineEdit widgets that might be OS X search widgets
Fixes issue 2823
This commit is contained in:
parent
e9ace3a2cb
commit
7d9f2b7b7d
@ -132,7 +132,7 @@ LibraryFilterWidget::~LibraryFilterWidget() {
|
||||
}
|
||||
|
||||
void LibraryFilterWidget::FocusOnFilter(QKeyEvent *event) {
|
||||
ui_->filter->setFocus(Qt::OtherFocusReason);
|
||||
ui_->filter->set_focus();
|
||||
QApplication::sendEvent(ui_->filter, event);
|
||||
}
|
||||
|
||||
|
@ -431,7 +431,7 @@ void PlaylistContainer::resizeEvent(QResizeEvent* e) {
|
||||
}
|
||||
|
||||
void PlaylistContainer::FocusOnFilter(QKeyEvent *event) {
|
||||
ui_->filter->setFocus(Qt::OtherFocusReason);
|
||||
ui_->filter->set_focus();
|
||||
QApplication::sendEvent(ui_->filter, event);
|
||||
}
|
||||
|
||||
|
@ -137,7 +137,7 @@ void AlbumCoverSearcher::Init(AlbumCoverFetcher* fetcher) {
|
||||
QImage AlbumCoverSearcher::Exec(const QString& artist, const QString& album) {
|
||||
ui_->artist->setText(artist);
|
||||
ui_->album->setText(album);
|
||||
ui_->artist->setFocus();
|
||||
ui_->artist->set_focus();
|
||||
|
||||
if(!artist.isEmpty() || !album.isEmpty()) {
|
||||
Search();
|
||||
|
Loading…
Reference in New Issue
Block a user