(1)
Fixed bookmark search key swallowing after exiting from submenu
This patch fixes the following problem:
- Open bookmark menu.
- Search for a folder or navigate to it so that submenu is opened.
- Press Esc to close the submenu.
- Type a key to search - it start searching but the search is reset immediately.
Although #3 sends QCloseEvent event for the submenu, #4 also sends
QCloseEvent event for the submenu (which seems to appear
as we deactivate the folder action) + sends another QCloseEvent event
for the submenu after ~200ms through QTimer for unknown reasons.
This change allows to remember the menu we are currently searching in
and ignore spurious QCloseEvent events.
(2)
Fixed active item deselection when starting search after exiting from submenu
This patch fixes the following problem:
- Open bookmark menu.
- Search for a folder or navigate to it so that submenu is opened.
- Press Esc to close the submenu.
- Type a key to search to find a match - it start searching but in a few moments active item becomes deselected.
Although #3 sends QCloseEvent event for the submenu, #4 also sends
QCloseEvent event for the submenu + sends
another QCloseEvent event for the submenu after ~200ms through QTimer
after which the active item is reset.
This change restores the active action in this case through another QTimer.