diff --git a/src/plugins/autotest/testrunner.cpp b/src/plugins/autotest/testrunner.cpp index c2f996b8d2b..29cb027efba 100644 --- a/src/plugins/autotest/testrunner.cpp +++ b/src/plugins/autotest/testrunner.cpp @@ -513,8 +513,7 @@ void TestRunner::debugTests() // We need a fake QFuture for the results. TODO: replace with QtConcurrent::run QFutureInterface *futureInterface = new QFutureInterface(QFutureInterfaceBase::Running); - QFuture future(futureInterface); - m_futureWatcher.setFuture(future); + m_futureWatcher.setFuture(futureInterface->future()); if (useOutputProcessor) { TestOutputReader *outputreader = config->outputReader(*futureInterface, 0);