abort commit if commit message cannot be saved

This commit is contained in:
Oswald Buddenhagen
2011-03-30 12:43:17 +02:00
parent 096a7aa72b
commit 469199e7a5
6 changed files with 14 additions and 8 deletions

View File

@@ -630,7 +630,8 @@ bool BazaarPlugin::submitEditorAboutToClose(VCSBase::VCSBaseSubmitEditor *submit
QStringList files = commitEditor->checkedFiles();
if (!files.empty()) {
//save the commit message
m_core->fileManager()->saveFile(editorFile);
if (!m_core->fileManager()->saveFile(editorFile))
return false;
//rewrite entries of the form 'file => newfile' to 'newfile' because
//this would mess the commit command