diff options
| author | Nathaniel Graham <[email protected]> | 2018-10-07 07:24:22 -0600 |
|---|---|---|
| committer | Nathaniel Graham <[email protected]> | 2018-10-09 15:09:44 -0600 |
| commit | 7f223f93df5ba613911e85a7959fc95e05ac6705 (patch) | |
| tree | 43e6d7c8769fc09e7813e767f6620af0e6c2fada | |
| parent | 8a932cb8373078f1ef4f90a3abc1d860a72beb02 (diff) | |
Add "Create New" menu to "Control" button
Summary: Right now, the "Create New" menu's functionality is not visible with Dolphin's default layout that has a {nav Control} button instead of a menubar. This patch adds that functionality to the {nav Control} button's menu so that it's actually discoverable for regular users.
Test Plan:
{F6304893}
All menu items work.
Reviewers: #dolphin, broulik, elvisangelaccio
Reviewed By: #dolphin, elvisangelaccio
Subscribers: acrouthamel, anthonyfieroni, elvisangelaccio, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D15609
| -rw-r--r-- | src/dolphinmainwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 7f36e82db..75a340f0a 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -854,6 +854,11 @@ void DolphinMainWindow::updateControlMenu() KActionCollection* ac = actionCollection(); + // Add "Create New" menu + menu->addMenu(m_newFileMenu->menu()); + + menu->addSeparator(); + // Add "Edit" actions bool added = addActionToMenu(ac->action(KStandardAction::name(KStandardAction::Undo)), menu) | addActionToMenu(ac->action(KStandardAction::name(KStandardAction::Find)), menu) | |
