forked from qt-creator/qt-creator
CppEditor: Use Qt::UniqueConnection
Change-Id: Id5a2237b64e4b3c944dc1e83ab7631a25cff5daf Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -213,8 +213,9 @@ void CppEditorDocument::onFilePathChanged(const Utils::FileName &oldPath,
|
||||
Utils::MimeDatabase mdb;
|
||||
setMimeType(mdb.mimeTypeForFile(newPath.toFileInfo()).name());
|
||||
|
||||
disconnect(this, &Core::IDocument::contentsChanged, this, &CppEditorDocument::scheduleProcessDocument);
|
||||
connect(this, &Core::IDocument::contentsChanged, this, &CppEditorDocument::scheduleProcessDocument);
|
||||
connect(this, &Core::IDocument::contentsChanged,
|
||||
this, &CppEditorDocument::scheduleProcessDocument,
|
||||
Qt::UniqueConnection);
|
||||
|
||||
// Un-Register/Register in ModelManager
|
||||
m_editorDocumentHandle.reset();
|
||||
|
Reference in New Issue
Block a user