Don't waste time rehighlighting all the files opened in Creator.

This commit is contained in:
Roberto Raggi
2010-12-14 15:04:46 +01:00
parent 6e17e7a3ab
commit ea5d923fe0
4 changed files with 15 additions and 4 deletions

View File

@@ -803,9 +803,6 @@ void QmlJSTextEditor::onDocumentUpdated(QmlJS::Document::Ptr doc)
{
if (file()->fileName() != doc->fileName()
|| doc->editorRevision() != document()->revision()) {
// didn't get the currently open, or an up to date document.
// trigger a semantic rehighlight anyway, after a time
m_semanticRehighlightTimer->start();
return;
}