From 469199e7a549086059ce1d7a6600ea3fdd317c80 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 30 Mar 2011 12:43:17 +0200 Subject: abort commit if commit message cannot be saved --- src/plugins/bazaar/bazaarplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/bazaar/bazaarplugin.cpp') diff --git a/src/plugins/bazaar/bazaarplugin.cpp b/src/plugins/bazaar/bazaarplugin.cpp index 69b50635aa..67e7b6e44e 100644 --- a/src/plugins/bazaar/bazaarplugin.cpp +++ b/src/plugins/bazaar/bazaarplugin.cpp @@ -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 -- cgit v1.2.1