mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Don't delete QProcess early if qrenderdoc takes too long to run
This commit is contained in:
@@ -408,10 +408,14 @@ void CaptureDialog::vulkanLayerWarn_mouseClick()
|
||||
}
|
||||
else
|
||||
{
|
||||
QProcess process;
|
||||
process.start(qApp->applicationFilePath(), QStringList() << lit("--install_vulkan_layer")
|
||||
<< lit("user"));
|
||||
process.waitForFinished(300);
|
||||
QProcess *process = new QProcess;
|
||||
process->start(qApp->applicationFilePath(), QStringList() << lit("--install_vulkan_layer")
|
||||
<< lit("user"));
|
||||
process->waitForFinished(300);
|
||||
|
||||
// when the process exits, delete
|
||||
QObject::connect(process, OverloadedSlot<int>::of(&QProcess::finished),
|
||||
[process](int exitCode) { process->deleteLater(); });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user