VCS: Make submit editor closing independent from current editor

The VCS plugins keep a reference to the submit editor, so it can
explicitly be closed, instead of relying on the correct currentEditor in
the editor manager.

Change-Id: I14aab63447f790f2065a8d8dc6b50aeacbd1e941
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Eike Ziller
2014-08-15 10:49:59 +02:00
parent 23536e9b42
commit 264df002e6
7 changed files with 7 additions and 7 deletions

View File

@@ -1122,7 +1122,7 @@ bool CvsPlugin::describe(const QString &repositoryPath,
void CvsPlugin::submitCurrentLog()
{
m_submitActionTriggered = true;
EditorManager::closeEditor(EditorManager::currentEditor());
EditorManager::closeEditor(submitEditor());
}
// Run CVS. At this point, file arguments must be relative to