From 798b2674af263d4a7f9af1622b6d119e2941f659 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 30 Jan 2020 14:13:53 +0100 Subject: Debugger: Fix go to location on interrupt Avoid checking an invalid QUrl - instead restore old code of always creating one an verifying this instead. Remove the now unused FilePath::isLocal(). Change-Id: I037c43e6fbdb7dc1f8901fc70b581f3c94ab503a Reviewed-by: hjk --- src/plugins/debugger/qml/qmlengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 fa2992ed17..064170fe32 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -465,7 +465,7 @@ void QmlEngine::errorMessageBoxFinished(int result) void QmlEngine::gotoLocation(const Location &location) { - if (location.fileName().isLocal()) { + if (QUrl(location.fileName().toString()).isLocalFile()) { // create QUrl to ensure validity 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