diff options
author | Janne Anttila <janne.anttila@digia.com> | 2010-03-04 13:45:33 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2010-03-05 06:42:51 (GMT) |
commit | b837e7024afcf4597082998f97dcc663c13c6380 (patch) | |
tree | dc9a4e2350be0b42b38832df796dafde7259b5ea /util/local_database | |
parent | 729d71641ef921f345debac33b52669f9e639c28 (diff) | |
download | Qt-b837e7024afcf4597082998f97dcc663c13c6380.zip Qt-b837e7024afcf4597082998f97dcc663c13c6380.tar.gz Qt-b837e7024afcf4597082998f97dcc663c13c6380.tar.bz2 |
Fixed crash in Symbian when having empty QMenu in menubar.
Typically cascade menus in Symbian/S60 are created from resources.
When cascade menus are defined in resources the RestoreMenuL is
responsible for instantiating the cascade menu item array and items.
In Qt for Symbian the menus need to be created dynamically from
QActions, that's why RestoreMenuL is reimplemeted in Qt for Symbian
to dynamically init the menu pane content. Adding a first dynamic
item to cascase menu pane creates the CEikMenuPane internal item array.
In case where empty QMenu was added to QMenubar, the item array for
cascade menupane was never constructed. Then later on CEikMenuPane code
assumes that item array exist. To avoid access violation crash we now
create the item array manually when building submenu.
Task-number: QTBUG-4897
Reviewed-by: Jason Barron
Diffstat (limited to 'util/local_database')
0 files changed, 0 insertions, 0 deletions