Commit f815aa95fcfd439f846434a24296d370e9e25790

  • avatar
  • Jakub Wieczorek <faw217 @gm…l.com>
  • Wed Jun 17 19:49:47 CEST 2009
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.
  
277277 menu->setModel(m_bookmarksModel);
278278 menu->setRootIndex(idx);
279279 menu->addAction(new QAction(menu));
280 button->setMenu(menu);
280 action->setMenu(menu);
281281
282282 connect(menu, SIGNAL(openUrl(const QUrl &, const QString &)),
283283 this, SIGNAL(openUrl(const QUrl &, const QString &)));