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>
bb10
Michal Klocek 2015-02-19 15:45:49 +01:00 committed by David Faure
parent efcc16a0a7
commit 081afb2a16
1 changed files with 4 additions and 0 deletions

View File

@ -350,6 +350,10 @@ namespace QtAndroidMenu
item->activated();
visibleMenu->aboutToHide();
visibleMenu = 0;
foreach (QAndroidPlatformMenu *menu, pendingContextMenus) {
if (menu->isVisible())
menu->aboutToHide();
}
pendingContextMenus.clear();
}
}