Git: Simplify code a bit

Change-Id: Iac245c92039f522cc0a599461572f9fd54cf43ae
Reviewed-by: Hugues Delorme <delorme.hugues@fougsys.fr>
This commit is contained in:
Tobias Hunger
2012-09-27 11:13:37 +02:00
parent 917517cd37
commit ac6c11ec19

View File

@@ -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)