From ac6c11ec198d23ff3795c823a641be7c7fd63ccf Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@digia.com>
Date: Thu, 27 Sep 2012 11:13:37 +0200
Subject: [PATCH] Git: Simplify code a bit

Change-Id: Iac245c92039f522cc0a599461572f9fd54cf43ae
Reviewed-by: Hugues Delorme <delorme.hugues@fougsys.fr>
---
 src/plugins/git/gitplugin.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp
index 0e7bd96e64f..94e5baa0619 100644
--- a/src/plugins/git/gitplugin.cpp
+++ b/src/plugins/git/gitplugin.cpp
@@ -716,9 +716,7 @@ void GitPlugin::submitCurrentLog()
 {
     // Close the submit editor
     m_submitActionTriggered = true;
-    QList<Core::IEditor*> editors;
-    editors.push_back(Core::EditorManager::currentEditor());
-    Core::ICore::editorManager()->closeEditors(editors);
+    Core::ICore::editorManager()->closeEditor();
 }
 
 bool GitPlugin::submitEditorAboutToClose(VcsBase::VcsBaseSubmitEditor *submitEditor)
-- 
GitLab