UI/Qt: Keep location bar selection when right-click context menu opens
Previously, selecting all or part of the URL in the location bar, then right clicking it would cause the URL to become deselected.
This commit is contained in:
parent
3e0ae3b5d2
commit
462cd59f58
1 changed files with 4 additions and 0 deletions
|
|
@ -417,6 +417,10 @@ void LocationEdit::focusInEvent(QFocusEvent* event)
|
|||
void LocationEdit::focusOutEvent(QFocusEvent* event)
|
||||
{
|
||||
QLineEdit::focusOutEvent(event);
|
||||
|
||||
if (event->reason() == Qt::PopupFocusReason)
|
||||
return;
|
||||
|
||||
animate_focus_glow(0);
|
||||
|
||||
reset_autocomplete_state();
|
||||
|
|
|
|||
Loading…
Reference in a new issue