mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Fix Windows build
kill() is not available on Windows. Now that we build TerminalPanel
everywhere (see 87e8d0ba
), we need to #ifdef this call.
This commit is contained in:
parent
3dcfb75362
commit
e136d8cfeb
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue