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 <tobias.hunger@digia.com>
parent 19e02154
......@@ -579,8 +579,13 @@ VcsBaseSubmitEditor::PromptSubmitResult
}
} else {
// Check failed.
QMessageBox::StandardButtons buttons;
if (canCommitOnFailure)
buttons = QMessageBox::Yes|QMessageBox::No|QMessageBox::Cancel;
else
buttons = QMessageBox::Yes|QMessageBox::No;
QMessageBox msgBox(QMessageBox::Question, title, checkFailureQuestion,
QMessageBox::Yes|QMessageBox::No|QMessageBox::Cancel, parent);
buttons, parent);
msgBox.setDefaultButton(QMessageBox::Cancel);
msgBox.setInformativeText(errorMessage);
msgBox.setMinimumWidth(checkDialogMinimumWidth);
......
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