From 48fec6c9ec6f55f91d115e8f5cf37f00326c470e Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Tue, 10 Nov 2020 19:59:15 +0100 Subject: [PATCH] Add 'Open Terminal Here' action from dolphin to menu --- CMakeLists.txt | 2 +- src/dolphincontextmenu.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 96291da51..dc682e2fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE project(Dolphin VERSION ${RELEASE_SERVICE_VERSION}) set(QT_MIN_VERSION "5.14.0") -set(KF5_MIN_VERSION "5.75.0") +set(KF5_MIN_VERSION "5.77.0") # ECM setup find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED) diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 34d3127dc..ed7321fab 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -341,7 +341,11 @@ void DolphinContextMenu::openViewportContextMenu() addSeparator(); // Insert service actions - fileItemActions.addServiceActionsTo(this); + QList additionalActions; + if (baseUrlProperties.isDirectory() && baseUrlProperties.isLocal()) { + additionalActions << m_mainWindow->actionCollection()->action(QStringLiteral("open_terminal")); + } + fileItemActions.addServiceActionsTo(this, additionalActions); fileItemActions.addPluginActionsTo(this); addVersionControlPluginActions(); -- 2.47.3