From 7cad80b292ef4ff89db5d6da924e75db4624d711 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Sun, 1 Sep 2019 15:01:57 -0600 Subject: 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/dolphinmainwindow.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 8453bfb36..253fc74d4 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -384,6 +384,11 @@ private slots: */ void openNewActivatedTab(); + /** + * Adds the current URL as an entry to the Places panel + */ + void addToPlaces(); + /** * Opens a new tab in the background showing the URL \a url. */ @@ -515,7 +520,7 @@ private: */ void setupDockWidgets(); - void updateEditActions(); + void updateFileAndEditActions(); void updateViewActions(); void updateGoActions(); -- cgit v1.3