diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-10-11 16:16:48 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-10-11 16:40:56 +0200 |
commit | b034b0b95505d39dcf870fe244e3dcd1598b5daa (patch) | |
tree | 0166c6de83e7f472d070a7fb95af38854aa947b1 /src/plugins/git/gitplugin.cpp | |
parent | dba595fdea1152fafb8291ed82df9ce2db825650 (diff) | |
download | qt-creator-b034b0b95505d39dcf870fe244e3dcd1598b5daa.tar.gz |
DVCS: Never prompt before committing
Commit is local. There's no reason to prompt.
Change-Id: I3aed5ad4931bc49c62d52f906100273739f4af89
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
-rw-r--r-- | src/plugins/git/gitplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index d0fc04bd90..5759e2e122 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -1075,15 +1075,15 @@ bool GitPlugin::submitEditorAboutToClose() return true; // Prompt user. Force a prompt unless submit was actually invoked (that // is, the editor was closed or shutdown). - bool *promptData = m_settings.boolPointer(GitSettings::promptOnSubmitKey); VcsBase::VcsBaseSubmitEditor::PromptSubmitResult answer; if (editor->forceClose()) { answer = VcsBase::VcsBaseSubmitEditor::SubmitDiscarded; } else { + bool promptData = false; answer = editor->promptSubmit(tr("Closing Git Editor"), tr("Do you want to commit the change?"), tr("Git will not accept this commit. Do you want to continue to edit it?"), - promptData, !m_submitActionTriggered, false); + &promptData, !m_submitActionTriggered, false); } m_submitActionTriggered = false; switch (answer) { |