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

@@ -781,7 +781,8 @@ bool GitPlugin::submitEditorAboutToClose(VCSBase::VCSBaseSubmitEditor *submitEdi
bool closeEditor = true;
if (!fileList.empty() || !m_commitAmendSHA1.isEmpty()) {
// get message & commit
m_core->fileManager()->saveFile(fileIFace);
if (!m_core->fileManager()->saveFile(fileIFace))
return false;
closeEditor = m_gitClient->addAndCommit(m_submitRepository,
editor->panelData(),