Commit bd70ae32 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

CppEditor: First un-register, then register in CppModelManager



...on a file path change.

Change-Id: Id4f67c9f133e53ddb3fea6c0ec3322f87914469b
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
parent 19ff4c41
......@@ -207,6 +207,7 @@ void CppEditorDocument::onFilePathChanged(const QString &oldPath, const QString
connect(this, SIGNAL(contentsChanged()), this, SLOT(scheduleProcessDocument()));
// Un-Register/Register in ModelManager
m_editorDocumentHandle.reset();
m_editorDocumentHandle.reset(new CppEditorDocumentHandle(this));
resetProcessor();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment