Commit f815aa95fcfd439f846434a24296d370e9e25790
Set the menu on the action rather than the button. When it's set on
the button, the action will not pick it up, when it's the other way
around, the button will pick up the menu of the default action.
| |   |
| 277 | 277 | menu->setModel(m_bookmarksModel); |
| 278 | 278 | menu->setRootIndex(idx); |
| 279 | 279 | menu->addAction(new QAction(menu)); |
| button->setMenu(menu); |
| action->setMenu(menu); |
| 281 | 281 | |
| 282 | 282 | connect(menu, SIGNAL(openUrl(const QUrl &, const QString &)), |
| 283 | 283 | this, SIGNAL(openUrl(const QUrl &, const QString &))); |