From 92a3666dcecf5326f21a59cf132f6061f3dfa929 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 23 Apr 2019 08:16:54 -0400 Subject: [PATCH] [license] Simplify isLocal() by using Qt method --- src/modules/license/LicensePage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/license/LicensePage.cpp b/src/modules/license/LicensePage.cpp index 025f77284..a894d35ff 100644 --- a/src/modules/license/LicensePage.cpp +++ b/src/modules/license/LicensePage.cpp @@ -81,7 +81,7 @@ LicenseEntry::LicenseEntry(const QVariantMap& conf) bool LicenseEntry::isLocal() const { - return ( m_url.scheme() == "file" ) && + return m_url.isLocalFile() && ( []( const QString&& r ){ return r.endsWith( ".html" ) || r.endsWith( ".txt" ); }( m_url.toString() ) ); }