diff options
| author | Nate Graham <[email protected]> | 2019-06-07 09:50:53 -0600 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2019-06-07 09:52:40 -0600 |
| commit | 1bcd47842224509964229a0bddc2277dfe1467da (patch) | |
| tree | 93734855abe732937ac1c6f44cc8a80500a848d7 | |
| parent | 10d8a5731507881aa12f166a7d233e8c434894eb (diff) | |
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
| -rw-r--r-- | src/dolphinmainwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 385b61a2a..c839e2d5c 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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); |
