diff --git a/src/plugins/diffeditor/diffshoweditorfactory.cpp b/src/plugins/diffeditor/diffshoweditorfactory.cpp index a7e5e76bf89..eacf346e820 100644 --- a/src/plugins/diffeditor/diffshoweditorfactory.cpp +++ b/src/plugins/diffeditor/diffshoweditorfactory.cpp @@ -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; }