mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Make Bookmarks item work properly as a toolbar item
- Make its menu open on click, not click-and-hold - Give it a proper icon BUG: 408346 FIXED-IN: 19.08.0
This commit is contained in:
parent
10d8a57315
commit
1bcd478422
|
@ -1275,6 +1275,9 @@ void DolphinMainWindow::setupActions()
|
|||
|
||||
// setup 'Bookmarks' menu
|
||||
KActionMenu *bookmarkMenu = new KActionMenu(i18nc("@title:menu", "&Bookmarks"), this);
|
||||
bookmarkMenu->setIcon(QIcon::fromTheme(QStringLiteral("bookmarks")));
|
||||
// Make the toolbar button version work properly on click
|
||||
bookmarkMenu->setDelayed(false);
|
||||
m_bookmarkHandler = new DolphinBookmarkHandler(this, actionCollection(), bookmarkMenu->menu(), this);
|
||||
actionCollection()->addAction(QStringLiteral("bookmarks"), bookmarkMenu);
|
||||
|
||||
|
|
Loading…
Reference in a new issue