[license] Simplify isLocal() by using Qt method

main
Adriaan de Groot 6 years ago
parent ddf541774b
commit 92a3666dce

@ -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() ) );
}

Loading…
Cancel
Save