diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-03-30 12:43:17 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-04-18 14:10:13 +0200 |
commit | 469199e7a549086059ce1d7a6600ea3fdd317c80 (patch) | |
tree | 5f06e221a5ff3557871782d6679ffa9c21084403 /src/plugins/bazaar/bazaarplugin.cpp | |
parent | 096a7aa72b84f9d1e73c704cdccfa46c54e3c102 (diff) | |
download | qt-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.cpp | 3 |
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 |