summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_kernel_qwidget.cpp
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-10-05 13:56:57 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-10-06 03:06:32 (GMT)
commit79b6b21eb72d60e7136c4ad5f4642bc1251b3b4a (patch)
treec04b53926d0ae401268ef5b426490fbe824cd7ec /doc/src/snippets/code/src_gui_kernel_qwidget.cpp
parent91475368d490cecd84e17f295a14e8e34ba381fb (diff)
downloadQt-79b6b21eb72d60e7136c4ad5f4642bc1251b3b4a.zip
Qt-79b6b21eb72d60e7136c4ad5f4642bc1251b3b4a.tar.gz
Qt-79b6b21eb72d60e7136c4ad5f4642bc1251b3b4a.tar.bz2
Fixed a crash in menus on Symbian.
The reason for the crash was the following: When we make menu entries in Qt, we assign each item an arbitrary command ID. This is because Symbian usually puts the items in a resource file and refers to them by ID, but we need to be dynamic. These command IDs are also assigned to cascading menu items (sub menus). When we then get a callback in RestoreMenuL with one of submenu IDs, we used to ask Symbian to construct the menu items for them, but Symbian doesn't know about them. Fixed by avoiding call into S60 code if the ID belongs to Qt. Also put a cap on the number of menu items. It's very unlikely that anyone will reach it, but it's better to have an actual check. Task: QT-646 AutoTest: Manual testing went fine RevBy: mread (cherry picked from commit c4571223a0ebb2f00a6c29477d0a4a55ae3cd2b5)
Diffstat (limited to 'doc/src/snippets/code/src_gui_kernel_qwidget.cpp')
0 files changed, 0 insertions, 0 deletions