1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

Add 'Open Terminal Here' action from dolphin to menu

This commit is contained in:
Alexander Lohnau 2020-11-10 19:59:15 +01:00 committed by Elvis Angelaccio
parent f46e630dda
commit 48fec6c9ec
2 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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();