From 1ce3eb38632e4fa5a32acedf5886b74ce577cc12 Mon Sep 17 00:00:00 2001
From: Leandro Melo <leandro.melo@nokia.com>
Date: Tue, 18 May 2010 11:31:24 +0200
Subject: [PATCH] Initialize editor in duplicate.

---
 src/plugins/genericeditor/editor.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/genericeditor/editor.cpp b/src/plugins/genericeditor/editor.cpp
index 959ea8dcff9..11862e524a4 100644
--- a/src/plugins/genericeditor/editor.cpp
+++ b/src/plugins/genericeditor/editor.cpp
@@ -108,7 +108,7 @@ void Editor::configure()
         m_commentDefinition.setMultiLineStart(definition->multiLineCommentStart());
         m_commentDefinition.setMultiLineEnd(definition->multiLineCommentEnd());
 
-        //@todo: It's possible to specify an indenter style in the definition file. However, this
+        // @todo: It's possible to specify an indenter style in the definition file. However, this
         // is not really being used because Kate recommends to configure indentation through
         // another feature. Maybe we should provide something similar in Creator? For now the
         // normal indenter is used.
@@ -143,5 +143,6 @@ Core::IEditor *EditorEditable::duplicate(QWidget *parent)
 {
     Editor *newEditor = new Editor(parent);
     newEditor->duplicateFrom(editor());
+    GenericEditorPlugin::instance()->initializeEditor(newEditor);
     return newEditor->editableInterface();
 }
-- 
GitLab