forked from qt-creator/qt-creator
Process: Fix stopping the process while message box is visible
When process finished while the message box querying for a process to be stopped after a timeout was visible, don't try to stop it and don't report a hang. Change-Id: I74a819244a96d9e0209cabc6d58c0a1c4fe1ac31 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1876,6 +1876,8 @@ void Process::runBlocking(EventLoopMode eventLoopMode)
|
||||
if (d->m_timeoutInSeconds > 0) {
|
||||
timeoutHandler = [this, &eventLoop, &timeoutHandler] {
|
||||
if (!d->m_timeOutMessageBoxEnabled || askToKill(d->m_setup.m_commandLine)) {
|
||||
if (state() == QProcess::NotRunning)
|
||||
return;
|
||||
stop();
|
||||
waitForFinished();
|
||||
d->m_result = ProcessResult::Hang;
|
||||
|
Reference in New Issue
Block a user