forked from qt-creator/qt-creator
Fix usage of EditorManager::editorsForFileName
And move to using the corresponding method in document model. Change-Id: I80b12ceab8a91c5393b9c0422d660a8896ae09d8 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -1998,12 +1998,7 @@ void QmlV8DebuggerClient::highlightExceptionCode(int lineNumber,
|
||||
const QString &filePath,
|
||||
const QString &errorMessage)
|
||||
{
|
||||
DocumentModel *documentModel = EditorManager::documentModel();
|
||||
int index = documentModel->indexOfFilePath(filePath);
|
||||
if (index < 0 || !documentModel->documents().at(index)->document)
|
||||
return;
|
||||
QList<IEditor *> editors = documentModel->editorsForDocument(
|
||||
documentModel->documents().at(index)->document);
|
||||
QList<IEditor *> editors = EditorManager::documentModel()->editorsForFilePath(filePath);
|
||||
|
||||
// set up the format for the errors
|
||||
QTextCharFormat errorFormat;
|
||||
|
||||
Reference in New Issue
Block a user