forked from qt-creator/qt-creator
DiffEditor: Fix compile with gcc 4.8 / Qt5.6
Broke with ee095ef5d5.
Change-Id: Ib8cc5a0b8d79cf6ca542eb2fc9c0a4f06e885d88
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
ee095ef5d5
commit
ad615ece16
@@ -326,7 +326,7 @@ void DiffEditorPlugin::updateCurrentEditor(Core::IEditor *editor)
|
||||
TextEditor::TextEditorWidget *editorWidget = qobject_cast<TextEditor::TextEditorWidget *>(editor->widget());
|
||||
if (editorWidget) {
|
||||
m_currentTextDocument = editorWidget->textDocument();
|
||||
connect(m_currentTextDocument, &Core::IDocument::changed,
|
||||
connect(m_currentTextDocument.data(), &Core::IDocument::changed,
|
||||
this, &DiffEditorPlugin::updateActions);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user