summaryrefslogtreecommitdiff
path: root/src/plugins/bazaar/bazaarplugin.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-03-30 12:43:17 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-04-18 14:10:13 +0200
commit469199e7a549086059ce1d7a6600ea3fdd317c80 (patch)
tree5f06e221a5ff3557871782d6679ffa9c21084403 /src/plugins/bazaar/bazaarplugin.cpp
parent096a7aa72b84f9d1e73c704cdccfa46c54e3c102 (diff)
downloadqt-creator-469199e7a549086059ce1d7a6600ea3fdd317c80.tar.gz
abort commit if commit message cannot be saved
Diffstat (limited to 'src/plugins/bazaar/bazaarplugin.cpp')
-rw-r--r--src/plugins/bazaar/bazaarplugin.cpp3
1 files changed, 2 insertions, 1 deletions
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