From 6cf74d2fdd36c5322c2db3278aea9c9d47b77889 Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Sun, 21 Jan 2018 12:15:07 +0100 Subject: Don't show 'Open Terminal' on Windows We already disable the TerminalPanel on Windows, we should do the same with the 'Open Terminal' action for consistency. --- src/dolphinpart.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dolphinpart.cpp') diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index c8bc8b647..6f8e20489 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -223,6 +223,7 @@ void DolphinPart::createActions() m_findFileAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-find"))); connect(m_findFileAction, &QAction::triggered, this, &DolphinPart::slotFindFile); +#ifndef Q_OS_WIN if (KAuthorized::authorize(QStringLiteral("shell_access"))) { m_openTerminalAction = actionCollection()->addAction(QStringLiteral("open_terminal")); m_openTerminalAction->setIcon(QIcon::fromTheme(QStringLiteral("utilities-terminal"))); @@ -230,6 +231,7 @@ void DolphinPart::createActions() connect(m_openTerminalAction, &QAction::triggered, this, &DolphinPart::slotOpenTerminal); actionCollection()->setDefaultShortcut(m_openTerminalAction, Qt::Key_F4); } +#endif } void DolphinPart::createGoAction(const char* name, const char* iconName, -- cgit v1.3