Commit e6cdf5833655f6bf4fae3166b2c1955e56cfc9a1
Let's not duplicate Symbian softkey menu top-level actions in submenu.
The old code incorrectly added the toplevel menu to menubar, where as
submenu should have been added. This change only has impact to case
where menu is being manually constructed by creating softkey action
with menu and by adding actions to that menu. Normal "Options" menus
are already working correctly.
Task-number: QTBUG-12189
Reviewed-by: Miikka Heikkinen
| |   |
| 401 | 401 | foreach(QAction *menuAction, action->menu()->actions()) { |
| 402 | 402 | QMenu *menu = menuAction->menu(); |
| 403 | 403 | if(menu) |
| menuBar->addMenu(action->menu()); |
| menuBar->addMenu(menu); |
| 405 | 405 | else |
| 406 | 406 | menuBar->addAction(menuAction); |
| 407 | 407 | } |