From b23d80d537b7ca6b438018ff9c2356ca21158d55 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 2 Jan 2020 12:37:57 +0100 Subject: Debugger: make Location::fileName a Utils::FilePath Change-Id: I637d39246ff576db1023f08c432a7f7b6aadbbaa Reviewed-by: hjk --- src/plugins/debugger/qml/qmlengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/debugger/qml/qmlengine.cpp') diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index 16dd00134d..8bde882a44 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -465,8 +465,8 @@ void QmlEngine::errorMessageBoxFinished(int result) void QmlEngine::gotoLocation(const Location &location) { - const QString fileName = location.fileName(); - if (QUrl(fileName).isLocalFile()) { + if (location.fileName().isLocal()) { + const QString fileName = location.fileName().toString(); // internal file from source files -> show generated .js QTC_ASSERT(d->sourceDocuments.contains(fileName), return); -- cgit v1.2.1