1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 12:02:48 +01:00

Display global search results when focusing on global search box only if reason is 'mouseFocus'

This commit is contained in:
Arnaud Bienner 2011-12-06 23:25:40 +01:00
parent d01badc9d9
commit 0322c2bbf1

View File

@ -367,9 +367,13 @@ bool GlobalSearchWidget::EventFilterSearchWidget(QObject* o, QEvent* e) {
return true;
break;
case QEvent::FocusIn:
RepositionPopup();
case QEvent::FocusIn: {
QFocusEvent* fe = static_cast<QFocusEvent*>(e);
if (fe->reason() == Qt::MouseFocusReason) {
RepositionPopup();
}
break;
}
case QEvent::KeyPress: {
QKeyEvent* ke = static_cast<QKeyEvent*>(e);