Fix empty contents in git show editor

Task-number: QTCREATORBUG-11314

Change-Id: I8a74c174be4436797bf04904e708e26e9463ddcf
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
Jarek Kobus
2014-01-21 20:31:40 +01:00
committed by Jarek Kobus
parent 1e858e1116
commit 4e320e8671

View File

@@ -49,6 +49,8 @@ DiffShowEditorFactory::DiffShowEditorFactory(QObject *parent)
Core::IEditor *DiffShowEditorFactory::createEditor()
{
DiffEditorWidget *editorWidget = new DiffEditorWidget();
DiffEditorController *editorController = new DiffEditorController(editorWidget);
editorWidget->setDiffEditorController(editorController);
DiffShowEditor *editor = new DiffShowEditor(editorWidget);
return editor;
}