summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2014-06-22 12:55:14 +0300
committerOrgad Shaneh <orgads@gmail.com>2014-06-23 15:29:55 +0200
commita6d8bbbb147f033167e47fc6fec8b442ade9aa7c (patch)
tree8abc5e9678bbf7f651b5e95c368737b6992a453f /src/plugins/vcsbase/vcsbasesubmiteditor.cpp
parentbbdd0655bc0a285e022587711d84ed02c7d4db48 (diff)
downloadqt-creator-a6d8bbbb147f033167e47fc6fec8b442ade9aa7c.tar.gz
VCS: Discard commit if submit widget is disabled
Change-Id: I8f11f56565f46919e93a30f754465de3bc44437e Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/vcsbase/vcsbasesubmiteditor.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbasesubmiteditor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/vcsbase/vcsbasesubmiteditor.cpp b/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
index 6aa9b5f347..d8355f61d0 100644
--- a/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
+++ b/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
@@ -547,6 +547,9 @@ VcsBaseSubmitEditor::PromptSubmitResult
Core::EditorManager::activateEditor(this, Core::EditorManager::IgnoreNavigationHistory);
+ if (!submitWidget->isEnabled())
+ return SubmitDiscarded;
+
QString errorMessage;
QMessageBox::StandardButton answer = QMessageBox::Yes;