diff options
| author | Méven Car <[email protected]> | 2023-04-02 07:22:07 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2023-04-02 07:22:07 +0000 |
| commit | 9061b22a0d0bc6bd7b9a1c31a5296bd00af60d0b (patch) | |
| tree | 8ff98a07139bb83353313600ffa033008adb68a2 /src/dolphincontextmenu.cpp | |
| parent | cdf56e761de86caca644c07a52de28163d430127 (diff) | |
Context menu: allow to show copy to/move to inactive split view
Prevent copying/moving to same folder as origin when copying/moving to inactive split view
BUG: 356436
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 94fed1872..a5b033c71 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -257,6 +257,16 @@ void DolphinContextMenu::addItemContextMenu() m_copyToMenu.addActionsTo(this); } + if (m_mainWindow->isSplitViewEnabledInCurrentTab()) { + if (ContextMenuSettings::showCopyToOtherSplitView()) { + addAction(m_mainWindow->actionCollection()->action(QStringLiteral("copy_to_inactive_split_view"))); + } + + if (ContextMenuSettings::showMoveToOtherSplitView()) { + addAction(m_mainWindow->actionCollection()->action(QStringLiteral("move_to_inactive_split_view"))); + } + } + // insert 'Properties...' entry addSeparator(); QAction *propertiesAction = m_mainWindow->actionCollection()->action(QStringLiteral("properties")); |
