Fixed a compile error.

This commit is contained in:
Zii 2023-05-17 19:40:09 +00:00
parent bbad30a5b0
commit 80e6980d9e
2 changed files with 4 additions and 5 deletions

View File

@ -217,10 +217,9 @@ void MultiInstance::instStderr()
}
}
void MultiInstance::procFinished(int exitCode, QProcess::ExitStatus exitStatus)
void MultiInstance::procChanged(QProcess::ProcessState newState)
{
Q_UNUSED(exitCode)
Q_UNUSED(exitStatus)
Q_UNUSED(newState)
for (auto &&proc : procList)
{
@ -259,7 +258,7 @@ int MultiInstance::start(const QStringList &args)
connect(proc, &QProcess::readyReadStandardOutput, this, &MultiInstance::instStdout);
connect(proc, &QProcess::readyReadStandardError, this, &MultiInstance::instStderr);
connect(proc, &QProcess::finished, this, &MultiInstance::procFinished);
connect(proc, &QProcess::stateChanged, this, &MultiInstance::procChanged);
connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, proc, &QProcess::terminate);

View File

@ -99,7 +99,7 @@ private slots:
void instStdout();
void instStderr();
void procFinished(int exitCode, QProcess::ExitStatus exitStatus);
void procChanged(QProcess::ProcessState newState);
public: