mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[license] Simplify isLocal() by using Qt method
This commit is contained in:
parent
ddf541774b
commit
92a3666dce
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ LicenseEntry::LicenseEntry(const QVariantMap& conf)
|
||||||
bool
|
bool
|
||||||
LicenseEntry::isLocal() const
|
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() ) );
|
( []( const QString&& r ){ return r.endsWith( ".html" ) || r.endsWith( ".txt" ); }( m_url.toString() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue