forked from qt-creator/qt-creator
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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user