forked from qt-creator/qt-creator
{Cpp,Text}Editor: Fix duplicating CppEditorWidget
Fixes local use highlighting and renaming in new split, among others. Done-with: hjk <hjk121@nokiamail.com> Change-Id: Ic604d37d2dc0082fa4a75c2af457f60d6d6cfa66 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -7284,7 +7284,9 @@ void BaseTextEditorFactory::setEditorActionHandlers(uint optionalActions)
|
||||
|
||||
BaseTextEditor *BaseTextEditorFactory::duplicateTextEditor(BaseTextEditor *other)
|
||||
{
|
||||
return createEditorHelper(other->editorWidget()->textDocumentPtr());
|
||||
BaseTextEditor *editor = createEditorHelper(other->editorWidget()->textDocumentPtr());
|
||||
editor->editorWidget()->finalizeInitializationAfterDuplication(other->editorWidget());
|
||||
return editor;
|
||||
}
|
||||
|
||||
IEditor *BaseTextEditorFactory::createEditor()
|
||||
|
||||
Reference in New Issue
Block a user