Commit 4278fd0a authored by Tobias Hunger's avatar Tobias Hunger

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

Change-Id: I645c371c0ca94cef9885475f580ed463fc643b2a
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent f6f80d88
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment