Don't use deprecated overload of QProcess::ExitStatus

This commit is contained in:
baldurk
2019-07-09 12:15:01 +01:00
parent 85738ad571
commit dc7bf0f1fc
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1814,7 +1814,7 @@ bool RunProcessAsAdmin(const QString &fullExecutablePath, const QStringList &par
process->start(sudo, sudoParams);
// when the process exits, call the callback and delete
QObject::connect(process, OverloadedSlot<int>::of(&QProcess::finished),
QObject::connect(process, OverloadedSlot<int, QProcess::ExitStatus>::of(&QProcess::finished),
[parent, process, finishedCallback](int exitCode) {
process->deleteLater();
GUIInvoke::call(parent, finishedCallback);
@@ -1851,7 +1851,7 @@ bool RunProcessAsAdmin(const QString &fullExecutablePath, const QStringList &par
process->start(term, termParams);
// when the process exits, call the callback and delete
QObject::connect(process, OverloadedSlot<int>::of(&QProcess::finished),
QObject::connect(process, OverloadedSlot<int, QProcess::ExitStatus>::of(&QProcess::finished),
[parent, process, finishedCallback](int exitCode) {
process->deleteLater();
GUIInvoke::call(parent, finishedCallback);
+2 -2
View File
@@ -487,8 +487,8 @@ void CaptureDialog::vulkanLayerWarn_mouseClick()
process->waitForFinished(300);
// when the process exits, delete
QObject::connect(process, OverloadedSlot<int>::of(&QProcess::finished),
[process](int exitCode) { process->deleteLater(); });
QObject::connect(process, OverloadedSlot<int, QProcess::ExitStatus>::of(&QProcess::finished),
[process](int exitCode, QProcess::ExitStatus) { process->deleteLater(); });
}
}