From: Alexander Lohnau Date: Tue, 10 Nov 2020 18:59:15 +0000 (+0100) Subject: Add 'Open Terminal Here' action from dolphin to menu X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/48fec6c9ec6f55f91d115e8f5cf37f00326c470e Add 'Open Terminal Here' action from dolphin to menu --- 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();