Commit 6844f60d authored by Gabriel de Dietrich's avatar Gabriel de Dietrich Committed by Timur Pocheptsov
Browse files

QCocoaMenu: Have the menu delegate return the right amount of items


In some cases we move menu items around, therefore we should
not rely on QCocoaMenu::items() being the actual items inside
the menu. But, since the NSMenu is updated before hand, we can
rely on NSMenu.numberOfItems instead.

Change-Id: Icd4497beca4f52a6d38408eeaa2e6ec71b579685
Task-number: QTBUG-52931
Reviewed-by: default avatarTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@qt.io>
Reviewed-by: default avatarMorten Johan Sørvig <morten.sorvig@qt.io>
parent 2e9fc0d3
Branches
Tags
Showing with 1 addition and 1 deletion
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment