iOS: filter responder actions from menu sync
Follow up from b494d85
. We need to filter the responder
actions after a sync as well, otherwise they will be
added back if a menu item e.g changes text.
Change-Id: I2ecbcc292400ada97a8e29d4b97f087349d8a061
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
parent
d4799d0238
commit
feff56827b
@ -369,7 +369,7 @@ void QIOSMenu::syncMenuItem(QPlatformMenuItem *)
|
||||
|
||||
switch (m_effectiveMenuType) {
|
||||
case EditMenu:
|
||||
[m_menuController setVisibleMenuItems:visibleMenuItems()];
|
||||
[m_menuController setVisibleMenuItems:filterFirstResponderActions(visibleMenuItems())];
|
||||
break;
|
||||
default:
|
||||
[m_pickerView setVisibleMenuItems:visibleMenuItems() selectItem:m_targetItem];
|
||||
|
Loading…
Reference in New Issue
Block a user