fix: Deprecated QProcess::pid()

This commit is contained in:
Sirius Bakke 2020-12-30 01:22:50 +01:00
parent 3359246b9a
commit 2bb27d5c9c
1 changed files with 3 additions and 6 deletions

View File

@ -302,15 +302,12 @@ void SSHSession::terminate()
return;
}
#ifdef _WIN32
if (proc->pid() != nullptr)
#else
if (proc->pid() != -1)
#endif
if (proc->processId() != 0)
{
if (proc->state() == QProcess::Running)
{
Q_PID pid = proc->pid();
qint64 pid = proc->processId();
if (fwbdebug)
qDebug() << "SSHSession::terminate "
<< "terminating child process pid=" << pid;