Commit f0e3722e authored by Kai Koehne's avatar Kai Koehne
Browse files

Fix for shadow builds

parent c17f1ec7
......@@ -242,12 +242,13 @@ void QmlProfilerTool::stopRecording()
d->m_traceWindow->setRecording(false);
}
void QmlProfilerTool::gotoSourceLocation(const QString &fileName, int lineNumber)
void QmlProfilerTool::gotoSourceLocation(const QString &fileUrl, int lineNumber)
{
if (lineNumber < 0 || !QFile::exists(QUrl(fileName).toLocalFile()))
if (lineNumber < 0 || fileUrl.isEmpty())
return;
QString projectFileName = d->m_projectFinder.findFile(fileName);
const QString fileName = QUrl(fileUrl).toLocalFile();
const QString projectFileName = d->m_projectFinder.findFile(fileName);
Core::EditorManager *editorManager = Core::EditorManager::instance();
Core::IEditor *editor = editorManager->openEditor(projectFileName);
......
......@@ -65,7 +65,7 @@ public slots:
void stopRecording();
void gotoSourceLocation(const QString &fileName, int lineNumber);
void gotoSourceLocation(const QString &fileUrl, int lineNumber);
void updateTimer(qreal elapsedSeconds);
signals:
......
......@@ -73,7 +73,7 @@ public slots:
signals:
void viewUpdated();
void gotoSourceLocation(const QString &fileName, int lineNumber);
void gotoSourceLocation(const QString &fileUrl, int lineNumber);
void timeChanged(qreal newTime);
private:
......
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