Commit d8fad00f authored by Daniel Teske's avatar Daniel Teske
Browse files

Git/Hg SubmitEditor: Fix buttons in confirmation dialog for close

Don't show the "cancel" button.

Task-number: QTCREATORBUG-10451
Change-Id: I904794460ef15562eb8db630d33b8a2443b036eb
Reviewed-by: default avatarTobias Hunger <>
parent 19e02154
......@@ -579,8 +579,13 @@ VcsBaseSubmitEditor::PromptSubmitResult
} else {
// Check failed.
QMessageBox::StandardButtons buttons;
if (canCommitOnFailure)
buttons = QMessageBox::Yes|QMessageBox::No|QMessageBox::Cancel;
buttons = QMessageBox::Yes|QMessageBox::No;
QMessageBox msgBox(QMessageBox::Question, title, checkFailureQuestion,
QMessageBox::Yes|QMessageBox::No|QMessageBox::Cancel, parent);
buttons, parent);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment