Git: Return true when asked to close a editor that is not open

Change-Id: I645c371c0ca94cef9885475f580ed463fc643b2a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2014-05-05 10:32:53 +02:00
parent f6f80d88a2
commit 4278fd0af2

View File

@@ -1065,7 +1065,7 @@ void GitPlugin::submitCurrentLog()
bool GitPlugin::submitEditorAboutToClose()
{
if (!isCommitEditorOpen())
return false;
return true;
GitSubmitEditor *editor = qobject_cast<GitSubmitEditor *>(submitEditor());
QTC_ASSERT(editor, return true);
Core::IDocument *editorDocument = editor->document();