From 8f6d99dc2965930a17fb18fe6f7d6ce57723cc1a Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 10 Jul 2019 14:09:08 +0200 Subject: 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 --- src/plugins/autotest/testrunner.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/autotest/testrunner.cpp b/src/plugins/autotest/testrunner.cpp index cf432870e3..ca3b1cebb9 100644 --- a/src/plugins/autotest/testrunner.cpp +++ b/src/plugins/autotest/testrunner.cpp @@ -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()) -- cgit v1.2.3