]> cloud.milkyroute.net Git - dolphin.git/commit
Add "Add to Places" action to file menu
authorNate Graham <nate@kde.org>
Sun, 1 Sep 2019 21:01:57 +0000 (15:01 -0600)
committerNate Graham <nate@kde.org>
Sun, 1 Sep 2019 21:04:45 +0000 (15:04 -0600)
commit7cad80b292ef4ff89db5d6da924e75db4624d711
treec44436bcbdf964909e8341beac2a45cd02991e2c
parent3a7586907ed834fb3c09d47e047da305a25374a2
Add "Add to Places" action to file menu

Summary:
It's recommended that actions available in context menus be available in the main menu
as well for discoverability's sake. This patch does so for the "Add to Places" action.

The action is moved over to the main window, and accessed in the context menu via the
actionCollection it lives in.

BUG: 390757
FIXED-IN: 19.08.0

Test Plan:
- Action still works
- Action still appears in context menu when relevant
- Action in the File menu only becomes enabled when only a single directory is selected or nothing is selected

{F7143876}

{F7143877}

{F7143878}

{F7143879}

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22149
src/dolphincontextmenu.cpp
src/dolphinmainwindow.cpp
src/dolphinmainwindow.h
src/dolphinui.rc