diff options
| author | Kai Uwe Broulik <[email protected]> | 2014-09-09 15:31:55 +0200 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2014-09-09 15:31:55 +0200 |
| commit | 42153e55e64d25dd0a1df30ae13c746320c7774a (patch) | |
| tree | 151d028efcc04c198d59de52c4166b6b2e8a3ef1 /src/dolphinmainwindow.cpp | |
| parent | dacded2afdfa85a16b99d8522284155cd5175ee5 (diff) | |
Add "Open Path" context menu action
This adds a third option to the "in new tab" and "in new window" which opens
the parent folder in the same view
BUG: 298704
FIXED-IN: 4.15
REVIEW: 110133
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 21d132020..f9ebe33ac 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -773,6 +773,10 @@ void DolphinMainWindow::openContextMenu(const QPoint& pos, const DolphinContextMenu::Command command = contextMenu.data()->open(); switch (command) { + case DolphinContextMenu::OpenParentFolder: + changeUrl(KIO::upUrl(item.url())); + break; + case DolphinContextMenu::OpenParentFolderInNewWindow: { KRun::run("dolphin %u", QList<QUrl>() << KIO::upUrl(item.url()), this); |
