]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make Bookmarks item work properly as a toolbar item
authorNate Graham <nate@kde.org>
Fri, 7 Jun 2019 15:50:53 +0000 (09:50 -0600)
committerNate Graham <nate@kde.org>
Fri, 7 Jun 2019 15:52:40 +0000 (09:52 -0600)
- Make its menu open on click, not click-and-hold
- Give it a proper icon

BUG: 408346
FIXED-IN: 19.08.0

src/dolphinmainwindow.cpp

index 385b61a2a7fb8ca9b033854c9ee8bf239471f78f..c839e2d5c4bebb2c61af6d88c51fda94edc64649 100644 (file)
@@ -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);