┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2018-02-11 23:01:17 +0100
committerElvis Angelaccio <[email protected]>2018-02-11 23:01:17 +0100
commite136d8cfeb1d7dced87713478e846468e794922e (patch)
tree2a574ba6844fba1235a61e0e4a02fb5d5f4cfab2 /src/panels
parent3dcfb753624c18f050dab62238af39eed4a68a12 (diff)
Fix Windows build
kill() is not available on Windows. Now that we build TerminalPanel everywhere (see 87e8d0ba), we need to #ifdef this call.
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/terminal/terminalpanel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panels/terminal/terminalpanel.cpp b/src/panels/terminal/terminalpanel.cpp
index 9ac0ca185..7bd811b38 100644
--- a/src/panels/terminal/terminalpanel.cpp
+++ b/src/panels/terminal/terminalpanel.cpp
@@ -171,6 +171,7 @@ void TerminalPanel::sendCdToTerminal(const QString& dir, HistoryPolicy addToHist
return;
}
+#ifndef Q_OS_WIN
if (!m_clearTerminal) {
// The TerminalV2 interface does not provide a way to delete the
// current line before sending a new input. This is mandatory,
@@ -181,6 +182,7 @@ void TerminalPanel::sendCdToTerminal(const QString& dir, HistoryPolicy addToHist
kill(processId, SIGINT);
}
}
+#endif
m_terminal->sendInput(" cd " + KShell::quoteArg(dir) + '\n');