diff options
| author | Elvis Angelaccio <[email protected]> | 2018-01-21 12:15:07 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2018-01-21 12:15:07 +0100 |
| commit | 6cf74d2fdd36c5322c2db3278aea9c9d47b77889 (patch) | |
| tree | 7e99be9ad722473dfb26f8a1b9c40c4cff7b3c33 /src/dolphinmainwindow.cpp | |
| parent | d55b0875ffac78ba99ca63f774be17273d396137 (diff) | |
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.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 4d0e6b20d..62b07f5a2 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1184,6 +1184,7 @@ void DolphinMainWindow::setupActions() compareFiles->setEnabled(false); connect(compareFiles, &QAction::triggered, this, &DolphinMainWindow::compareFiles); +#ifndef Q_OS_WIN if (KAuthorized::authorize(QStringLiteral("shell_access"))) { QAction* openTerminal = actionCollection()->addAction(QStringLiteral("open_terminal")); openTerminal->setText(i18nc("@action:inmenu Tools", "Open Terminal")); @@ -1191,6 +1192,7 @@ void DolphinMainWindow::setupActions() actionCollection()->setDefaultShortcut(openTerminal, Qt::SHIFT | Qt::Key_F4); connect(openTerminal, &QAction::triggered, this, &DolphinMainWindow::openTerminal); } +#endif // setup 'Settings' menu KToggleAction* showMenuBar = KStandardAction::showMenubar(nullptr, nullptr, actionCollection()); |
