AutoTest: Avoid unclosable progress bar widget

The progress bar widget gets automatically closed if the
underlying future reports that it has finished or got
canceled. This patch ensures to emit the respective signal.

Fixes: QTCREATORBUG-22699
Change-Id: I5c7d2169194e90165fb1c90831cf69c02e029268
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2019-07-10 14:09:08 +02:00
parent 3ea670d207
commit 8f6d99dc29

View File

@@ -174,10 +174,13 @@ void TestRunner::scheduleNext()
tr("Executable path is empty. (%1)").arg(m_currentConfig->displayName()));
delete m_currentConfig;
m_currentConfig = nullptr;
if (m_selectedTests.isEmpty())
if (m_selectedTests.isEmpty()) {
if (m_fakeFutureInterface)
m_fakeFutureInterface->reportFinished();
onFinished();
else
} else {
onProcessFinished();
}
return;
}
if (!m_currentConfig->project())