mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-03 05:11:06 +00:00
Don't delete capture unless it's still temporary, even if we own it
This commit is contained in:
@@ -1037,10 +1037,11 @@ void MainWindow::CloseCapture()
|
||||
{
|
||||
QString path = m_Ctx.GetCaptureFilename();
|
||||
bool local = m_Ctx.IsCaptureLocal();
|
||||
bool temp = m_Ctx.IsCaptureTemporary();
|
||||
|
||||
m_Ctx.CloseCapture();
|
||||
|
||||
if(m_OwnTempCapture)
|
||||
if(m_OwnTempCapture && temp)
|
||||
{
|
||||
m_Ctx.Replay().DeleteCapture(path, local);
|
||||
RemoveRecentCapture(path);
|
||||
|
||||
Reference in New Issue
Block a user