diff --git a/gui/checkthread.cpp b/gui/checkthread.cpp index 3d1a44a9a18..f4803ebef61 100644 --- a/gui/checkthread.cpp +++ b/gui/checkthread.cpp @@ -90,7 +90,10 @@ int CheckThread::executeCommand(std::string exe, std::vector args, } process.start(e, args2); - process.waitForFinished(); + while (!Settings::terminated() && !process.waitForFinished(1000)) { + if (process.state() == QProcess::ProcessState::NotRunning) + break; + } if (redirect == "2>&1") { QString s1 = process.readAllStandardOutput();