From 0e7fc0ef2e77e2a183c08f8946e5b092d86147bc Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Mon, 31 Oct 2016 16:36:03 +0100 Subject: [PATCH] Core: fix warning in reaper Change-Id: Ie8be62619d7092982f8e6c8e46e6b019730f2b42 Reviewed-by: Tobias Hunger --- src/plugins/coreplugin/reaper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/reaper.cpp b/src/plugins/coreplugin/reaper.cpp index fabdcdb26c9..9a03e308a2d 100644 --- a/src/plugins/coreplugin/reaper.cpp +++ b/src/plugins/coreplugin/reaper.cpp @@ -95,7 +95,6 @@ void reap(QProcess *process, int timeoutMs) Internal::d->m_synchronizer.addFuture(f); auto watcher = new QFutureWatcher(); - watcher->setFuture(f); QObject::connect(watcher, &QFutureWatcher::finished, [watcher, reaper]() { watcher->deleteLater(); @@ -107,6 +106,7 @@ void reap(QProcess *process, int timeoutMs) delete reaper; }); + watcher->setFuture(f); } } // namespace Reaper