Cocoa: Enable native menus.
authorMorten Sorvig <morten.sorvig@nokia.com>
Mon, 12 Sep 2011 10:31:35 +0000 (12:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 22 Sep 2011 07:11:45 +0000 (09:11 +0200)
commit91ec8261ab58061ca9e935c4e6a7f1c4a359cc27
treeddd0423a0d407c770c8bdb3b53f4b537a17553b0
parentf82431b61c9e049ef1b22d8bd909369fe1f2636d
Cocoa: Enable native menus.

Fix menu duplication bug: make QCocoaMenu::addAction
do nothing before the native menu has ben created.

Change-Id: Ifca192421f2073264de9f5faeb053008ecb8532e
Reviewed-on: http://codereview.qt-project.org/5135
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/plugins/platforms/cocoa/qcocoaintegration.mm
src/plugins/platforms/cocoa/qmenu_mac.mm