Fix android menubar's menu not opening at the first press.
In case of selected item in submenu, call aboutToHide() on still
visible menus. This will allow quickquickcontrols to act
poperly when menus are closed.
This patch is a resubmission of
dbd6d158e3
which was merged to dev
although it should have targeted 5.5.
Task-number: QTBUG-42188
Change-Id: I868cc6fc8403f0586f35a1734e0cb026982f6063
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
This commit is contained in:
parent
efcc16a0a7
commit
081afb2a16
@ -350,6 +350,10 @@ namespace QtAndroidMenu
|
||||
item->activated();
|
||||
visibleMenu->aboutToHide();
|
||||
visibleMenu = 0;
|
||||
foreach (QAndroidPlatformMenu *menu, pendingContextMenus) {
|
||||
if (menu->isVisible())
|
||||
menu->aboutToHide();
|
||||
}
|
||||
pendingContextMenus.clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user