Version Control: Release the commit message temporary file.

... and add some logging to p4.
This commit is contained in:
Friedemann Kleint
2009-08-17 09:49:56 +02:00
parent 002cc5b517
commit d7c5e2ed24
4 changed files with 32 additions and 16 deletions

View File

@@ -592,10 +592,10 @@ void GitPlugin::startCommit()
}
m_changeTmpFile = changeTmpFile;
m_changeTmpFile->write(commitTemplate.toLocal8Bit());
m_changeTmpFile->flush();
m_changeTmpFile->flush();
// Keep the file alive, else it removes self and forgets
// its name
m_changeTmpFile->seek(0);
m_changeTmpFile->close();
openSubmitEditor(m_changeTmpFile->fileName(), data);
}