urlbar: Don't rely on focus change

Merged Waqar Ahmed requested to merge work/fix-crash into master

Fixes the crash with stale QModelIndex + other focus issues and accidental urlbar opening.

Merge request reports