[license] Simplify isLocal() by using Qt method
This commit is contained in:
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…
Reference in New Issue
Block a user