From 4ade1187aae16224158cfac9fb1d3b041ef3635b Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 8 May 2018 19:10:28 +0100 Subject: [PATCH] Fix linux compilation - pass parent QObject* to GUIInvoke --- qrenderdoc/Code/QRDUtils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qrenderdoc/Code/QRDUtils.cpp b/qrenderdoc/Code/QRDUtils.cpp index e1f1400d8..130ad0825 100644 --- a/qrenderdoc/Code/QRDUtils.cpp +++ b/qrenderdoc/Code/QRDUtils.cpp @@ -1405,9 +1405,9 @@ bool RunProcessAsAdmin(const QString &fullExecutablePath, const QStringList &par // when the process exits, call the callback and delete QObject::connect(process, OverloadedSlot::of(&QProcess::finished), - [process, finishedCallback](int exitCode) { + [parent, process, finishedCallback](int exitCode) { process->deleteLater(); - GUIInvoke::call(finishedCallback); + GUIInvoke::call(parent, finishedCallback); }); return true; @@ -1442,9 +1442,9 @@ bool RunProcessAsAdmin(const QString &fullExecutablePath, const QStringList &par // when the process exits, call the callback and delete QObject::connect(process, OverloadedSlot::of(&QProcess::finished), - [process, finishedCallback](int exitCode) { + [parent, process, finishedCallback](int exitCode) { process->deleteLater(); - GUIInvoke::call(finishedCallback); + GUIInvoke::call(parent, finishedCallback); }); return true;