mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-08 15:04:21 +00:00
Check file hasn't been removed out from under us before saving
This commit is contained in:
1 parent
5b2a754196
commit
65df5a9192
1 file changed
+7
@@ -1000,6 +1000,13 @@ namespace renderdocui.Windows
|
||||
|
||||
if (res == DialogResult.OK)
|
||||
{
|
||||
if (!File.Exists(m_Core.LogFileName))
|
||||
{
|
||||
MessageBox.Show("Logfile " + m_Core.LogFileName + " couldn't be found, cannot save.", "File not found",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return false;
|
||||
}
|
||||
|
||||
File.Copy(m_Core.LogFileName, saveDialog.FileName, true);
|
||||
|
||||
OwnTemporaryLog = false;
|
||||
|
||||
Reference in new issue
Block a user