Commit 6e6c9f98 authored by Eike Ziller's avatar Eike Ziller Committed by Oswald Buddenhagen
Browse files

Don't try finalizing files that were never created.

Task-number: QTCREATORBUG-6643

Change-Id: I04945ebb39caace476a12f293666cfcec0f8a9e5
Reviewed-by: default avatarOswald Buddenhagen <>
parent c1f643e3
......@@ -37,7 +37,7 @@
namespace Utils {
SaveFile::SaveFile(const QString &filename) :
m_finalFileName(filename), m_finalized(false), m_backup(false)
m_finalFileName(filename), m_finalized(true), m_backup(false)
......@@ -62,6 +62,7 @@ bool SaveFile::open(OpenMode flags)
if (!QTemporaryFile::open(flags))
return false;
m_finalized = false; // needs clean up in the end
if (ofi.exists())
setPermissions(ofi.permissions()); // Ignore errors
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment