From c8065c2370af74d91ef522d96a4768f356a305e0 Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Wed, 6 Oct 2010 18:08:30 +0200
Subject: [PATCH] VCS: raise submit editor to the front when prompting

Bring the submit to the front when asking whether the change should
get committed or not. This is useful when e.g. closing creator
while a submiteditor is open somewhere (but not visible).
---
 src/plugins/vcsbase/vcsbasesubmiteditor.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/vcsbase/vcsbasesubmiteditor.cpp b/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
index 076107f3775..cfc10e88b88 100644
--- a/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
+++ b/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
@@ -466,6 +466,8 @@ VCSBaseSubmitEditor::PromptSubmitResult
                                           bool *promptSetting,
                                           bool forcePrompt) const
 {
+    raiseSubmitEditor();
+
     QString errorMessage;
     QMessageBox::StandardButton answer = QMessageBox::Yes;
 
-- 
GitLab