diff options
| author | Roman Inflianskas <[email protected]> | 2018-03-03 16:36:44 +0300 |
|---|---|---|
| committer | Roman Inflianskas <[email protected]> | 2018-03-14 22:02:30 +0300 |
| commit | 86f4fcb8cd574f6d886627fc5e01c9edfc84e977 (patch) | |
| tree | 7e8f6c85b312d156ea1a881e35bd4075720001f7 /src/dolphincontextmenu.cpp | |
| parent | 6ab76d791caa552091057f88365b24847014ff1d (diff) | |
Add "Open symlink destination folder" into symlink's context menu
Summary:
This is not complete. I'm wondering about "Open symlink destination folder in new tab/window".
Feature wants also "Copy symlink destination". I dislike this, because then it's good to have "Cut symlink destination" and that's too much.
FEATURE: 215069
Reviewers: #dolphin, ngraham
Reviewed By: #dolphin, ngraham
Subscribers: rkflx, ngraham, elvisangelaccio, markg, #dolphin
Differential Revision: https://phabricator.kde.org/D10990
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index c4a66c19a..b3ecc74b9 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -193,7 +193,10 @@ void DolphinContextMenu::openItemContextMenu() const KFileItemListProperties& selectedItemsProps = selectedItemsProperties(); if (m_selectedItems.count() == 1) { - if (m_fileInfo.isDir()) { + if (m_fileInfo.isLink()) { + addAction(m_mainWindow->actionCollection()->action(QStringLiteral("show_original"))); + addSeparator(); + } else if (m_fileInfo.isDir()) { // setup 'Create New' menu DolphinNewFileMenu* newFileMenu = new DolphinNewFileMenu(m_mainWindow->actionCollection(), m_mainWindow); const DolphinView* view = m_mainWindow->activeViewContainer()->view(); |
