Commit f3469d1d authored by Aurindam Jana's avatar Aurindam Jana
Browse files

QmlEngine: Use QUrl::localFile() instead of checking scheme

Change-Id: I5c48b74a99b12d7e319198ec8f352ff493259df8
Reviewed-by: default avatarKai Koehne <>
Reviewed-by: default avatarEike Ziller <>
Reviewed-by: default avatarAurindam Jana <>
parent 28ec7caa
......@@ -525,8 +525,7 @@ void QmlEngine::showMessage(const QString &msg, int channel, int timeout) const
void QmlEngine::gotoLocation(const Location &location)
const QString fileName = location.fileName();
// TODO: QUrl::isLocalFile() once we depend on Qt 4.8
if (QUrl(fileName).scheme().compare(QLatin1String("file"), Qt::CaseInsensitive) == 0) {
if (QUrl(fileName).isLocalFile()) {
// internal file from source files -> show generated .js
QTC_ASSERT(m_sourceDocuments.contains(fileName), return);
Core::IEditor *editor = 0;
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