┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorNate Graham <[email protected]>2019-09-01 15:01:57 -0600
committerNate Graham <[email protected]>2019-09-01 15:04:45 -0600
commit7cad80b292ef4ff89db5d6da924e75db4624d711 (patch)
treec44436bcbdf964909e8341beac2a45cd02991e2c /src/dolphinmainwindow.h
parent3a7586907ed834fb3c09d47e047da305a25374a2 (diff)
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
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 8453bfb36..253fc74d4 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -385,6 +385,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.
*/
void openNewTab(const QUrl& url, DolphinTabWidget::TabPlacement tabPlacement);
@@ -515,7 +520,7 @@ private:
*/
void setupDockWidgets();
- void updateEditActions();
+ void updateFileAndEditActions();
void updateViewActions();
void updateGoActions();