summaryrefslogtreecommitdiff
path: root/src/plugins/perforce
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-11-09 09:59:40 +0200
committerOrgad Shaneh <orgads@gmail.com>2018-11-12 18:35:44 +0000
commit15b176e30c0a3a6e6effe0043a5133241caa9d2f (patch)
tree9e7d7c3ef6527dd7e988b455b13918b793d3e314 /src/plugins/perforce
parent7d56d89f255335511fb22ec43e047a0d2bb38a91 (diff)
downloadqt-creator-15b176e30c0a3a6e6effe0043a5133241caa9d2f.tar.gz
VCS: Improve dialog on submit prompt
The dialog appears when closing the commit dialog without committing, or when "prompt to submit" setting is enabled. Fixes: QTCREATORBUG-18799 Change-Id: I8eb20becbcee7281b9f673a35ec698c6f8e04a40 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r--src/plugins/perforce/perforceplugin.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp
index 1ad1cf7dc5..5c43f44320 100644
--- a/src/plugins/perforce/perforceplugin.cpp
+++ b/src/plugins/perforce/perforceplugin.cpp
@@ -1310,10 +1310,7 @@ bool PerforcePlugin::submitEditorAboutToClose()
// is, the editor was closed or shutdown).
bool wantsPrompt = m_settings.promptToSubmit();
const VcsBaseSubmitEditor::PromptSubmitResult answer =
- perforceEditor->promptSubmit(tr("Closing p4 Editor"),
- tr("Do you want to submit this change list?"),
- tr("The commit message check failed. Do you want to submit this change list?"),
- &wantsPrompt, !m_submitActionTriggered);
+ perforceEditor->promptSubmit(this, &wantsPrompt, !m_submitActionTriggered);
m_submitActionTriggered = false;
if (answer == VcsBaseSubmitEditor::SubmitCanceled)