forked from qt-creator/qt-creator
EditorManager: Use static pattern, adjust surrounding code
Change-Id: I3255a0150cd9a730336456c5a9f986eb74fefbff Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -305,7 +305,7 @@ void CppEditorSupport::startHighlighting()
|
||||
|
||||
// Start highlighting only if the editor is or would be visible
|
||||
// (in case another mode is active) in the edit mode.
|
||||
if (!Core::EditorManager::instance()->visibleEditors().contains(m_textEditor))
|
||||
if (!Core::EditorManager::visibleEditors().contains(m_textEditor))
|
||||
return;
|
||||
|
||||
if (m_highlightingSupport->requiresSemanticInfo()) {
|
||||
|
||||
Reference in New Issue
Block a user