Check file hasn't been removed out from under us before saving

This commit is contained in:
baldurk
2014-11-15 12:21:27 +00:00
parent 5b2a754196
commit 65df5a9192
+7
View File
@@ -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;