Commit ab7b749b authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlProfiler: manage external tracefiles nicely

When inspecting a trace from an external project
where the source files are not available
avoid displaying error messages continuously

Change-Id: I4dad291092130b0132a338740a54c506edd67161
Reviewed-by: default avatarKai Koehne <>
parent 412e61d2
......@@ -463,6 +463,10 @@ void QmlProfilerTool::gotoSourceLocation(const QString &fileUrl, int lineNumber)
const QString projectFileName = d->m_projectFinder.findFile(fileUrl);
QFileInfo fileInfo(projectFileName);
if (!fileInfo.exists() || !fileInfo.isReadable())
Core::EditorManager *editorManager = Core::EditorManager::instance();
Core::IEditor *editor = editorManager->openEditor(projectFileName);
TextEditor::ITextEditor *textEditor = qobject_cast<TextEditor::ITextEditor*>(editor);
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