diff options
author | Gabriel de Dietrich <gabriel.dedietrich@qt.io> | 2017-10-25 09:32:48 +0700 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-11-07 19:36:39 +0000 |
commit | 3f519ffa150ce5a2d9e3ad3f147745b312d29afb (patch) | |
tree | d535c13cbfca4ab1d37c08600a230085a891d7a4 /src/corelib/global | |
parent | 5d6878f234d1d8697bba43cb5140094dee722a86 (diff) |
QCocoaMenuItem: Don't clear NSMenuItem.action when setting submenu
Contrarily to what the comment stated, we actually rely on automatic
menu validation, even for submenu items. This is visible in the menu
delegate's validateMenuItem: and itemFired: methods.
This solves the last visible issue in BigMenuCreator where, under
ASP/ASP, ASP/SAP, SAP/ASP and SAP/SAP, all A*S submenus would be
disabled. The cause was an incorrect target/action setup.
Menurama still behaves as expected.
Change-Id: I2599d6fb0d51f56f5d36f03b69647e35ff6c550a
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/corelib/global')
0 files changed, 0 insertions, 0 deletions