Fix linux compilation - pass parent QObject* to GUIInvoke

This commit is contained in:
baldurk
2018-05-08 19:10:28 +01:00
parent 61c4af1dc6
commit 4ade1187aa
+4 -4
View File
@@ -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;