┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Lohnau <[email protected]>2020-11-10 19:59:15 +0100
committerElvis Angelaccio <[email protected]>2020-11-21 20:22:16 +0000
commit48fec6c9ec6f55f91d115e8f5cf37f00326c470e (patch)
treeec2602bea2eab6346ab74ad2ef170c873ffae4ea
parentf46e630ddaaf5716cd1a1ce0c389ff66dcd76f85 (diff)
Add 'Open Terminal Here' action from dolphin to menu
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/dolphincontextmenu.cpp6
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<QAction *> additionalActions;
+ if (baseUrlProperties.isDirectory() && baseUrlProperties.isLocal()) {
+ additionalActions << m_mainWindow->actionCollection()->action(QStringLiteral("open_terminal"));
+ }
+ fileItemActions.addServiceActionsTo(this, additionalActions);
fileItemActions.addPluginActionsTo(this);
addVersionControlPluginActions();