diff options
author | Christian Stenger <christian.stenger@qt.io> | 2019-07-10 14:09:08 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2019-07-11 13:55:09 +0000 |
commit | 8f6d99dc2965930a17fb18fe6f7d6ce57723cc1a (patch) | |
tree | 6ef00739ab380e99c4be096a55236a50807239eb /src/plugins/autotest | |
parent | 3ea670d207a22b43e05fd5c520e7574d1888c26a (diff) |
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>
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r-- | src/plugins/autotest/testrunner.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/autotest/testrunner.cpp b/src/plugins/autotest/testrunner.cpp index cf432870e3a..ca3b1cebb92 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()) |