mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 00:16:45 +00:00
Fix linux compilation - pass parent QObject* to GUIInvoke
This commit is contained in:
@@ -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<int>::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<int>::of(&QProcess::finished),
|
||||
[process, finishedCallback](int exitCode) {
|
||||
[parent, process, finishedCallback](int exitCode) {
|
||||
process->deleteLater();
|
||||
GUIInvoke::call(finishedCallback);
|
||||
GUIInvoke::call(parent, finishedCallback);
|
||||
});
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user