diff options
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolseditorsupport.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp index 6527983b6e..5eba9158e7 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.cpp +++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp @@ -61,7 +61,8 @@ void CppEditorSupport::setTextEditor(TextEditor::ITextEditor *textEditor) if (! _textEditor) return; - connect(_textEditor, SIGNAL(contentsChanged()), this, SLOT(updateDocument())); + connect(_textEditor, SIGNAL(contentsChanged()), this, SIGNAL(contentsChanged())); + connect(this, SIGNAL(contentsChanged()), this, SLOT(updateDocument())); updateDocument(); } @@ -106,3 +107,5 @@ void CppEditorSupport::updateDocumentNow() } } + + |