summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libmng
diff options
context:
space:
mode:
authorPasi Matilainen <pasi.matilainen@digia.com>2012-08-23 13:07:45 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-02 09:11:32 (GMT)
commitd412f11cea4dc336c684aafcd8979d5cec751cb5 (patch)
treeddc4dcf63d6957d38fdda3e3307efb3d3fe592a7 /src/3rdparty/libmng
parent2884acf635825929204ae1c470b80df304de2d67 (diff)
downloadQt-d412f11cea4dc336c684aafcd8979d5cec751cb5.zip
Qt-d412f11cea4dc336c684aafcd8979d5cec751cb5.tar.gz
Qt-d412f11cea4dc336c684aafcd8979d5cec751cb5.tar.bz2
Update the state of native menus correctly on Mac
The state of native menus is currently updated in two incompatible ways on Mac, either by updating the state of native menu items in a native menu (when setEnabled is called) or the state of the native menu item containing the native menu (when the menus are initialized and when a modal dialog is opened/closed). This causes various problems, e.g. inability to enable a menu that was disabled before menu initialization or menus getting enabled incorrectly after a modal dialog is closed. Fix by always setting the state of the native menu item that contains the native menu. Also, autoenable is active for the main menu, resulting in unnecessary menu validation calls, so turn it off. Task-number: QTBUG-25544 Task-number: QTBUG-26399 Task-number: QTBUG-7538 Change-Id: Iab335af633604e7b3017eaa55464d1b8fdd7b821 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src/3rdparty/libmng')
0 files changed, 0 insertions, 0 deletions