forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user