Remove pointless setFocus().
This commit is contained in:
parent
f2062cb68a
commit
66f9d3c8b0
|
@ -426,10 +426,6 @@ bool GlobalSearchWidget::EventFilterPopup(QObject*, QEvent* e) {
|
|||
return false;
|
||||
}
|
||||
|
||||
void GlobalSearchWidget::setFocus(Qt::FocusReason reason) {
|
||||
ui_->search->setFocus(reason);
|
||||
}
|
||||
|
||||
void GlobalSearchWidget::LazyLoadArt(const QModelIndex& proxy_index) {
|
||||
if (!proxy_index.isValid() || proxy_index.data(Role_LazyLoadingArt).isValid()) {
|
||||
return;
|
||||
|
|
|
@ -60,7 +60,6 @@ public:
|
|||
|
||||
// QWidget
|
||||
bool eventFilter(QObject* o, QEvent* e);
|
||||
void setFocus(Qt::FocusReason reason);
|
||||
|
||||
public slots:
|
||||
void ReloadSettings();
|
||||
|
|
|
@ -2257,5 +2257,4 @@ void MainWindow::ShowGlobalSearch() {
|
|||
connect(search_popup_.get(), SIGNAL(AddToPlaylist(QMimeData*)), SLOT(AddToPlaylist(QMimeData*)));
|
||||
}
|
||||
search_popup_->show();
|
||||
search_popup_->setFocus();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue