diff options
author | Christian Stenger <christian.stenger@qt.io> | 2020-01-30 14:13:53 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2020-01-31 13:18:50 +0000 |
commit | 798b2674af263d4a7f9af1622b6d119e2941f659 (patch) | |
tree | b6d6ae11eed2fe9409cbbc8a8313d8a58d841ea8 /src/plugins/debugger/qml/qmlengine.cpp | |
parent | 1fac0d49a2fa913ba7e408fdfd516d6b8414d5c5 (diff) |
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 <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r-- | src/plugins/debugger/qml/qmlengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |