]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix Windows build
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 11 Feb 2018 22:01:17 +0000 (23:01 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 11 Feb 2018 22:01:17 +0000 (23:01 +0100)
kill() is not available on Windows. Now that we build TerminalPanel
everywhere (see 87e8d0ba), we need to #ifdef this call.

src/panels/terminal/terminalpanel.cpp

index 9ac0ca185910f8d13abcd99c071e868173b78207..7bd811b381f25a2155ad4b6d981804709ac33bec 100644 (file)
@@ -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');