Fix compilation when using -no-mimetype-database
Change-Id: I4f706a26d73f61e4a6022338e0fc0be48627e4a1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
parent
f7f1a71ea4
commit
c67ea659e5
@ -700,7 +700,11 @@ bool QMimeXMLProvider::isValid()
|
||||
|
||||
bool QMimeXMLProvider::isInternalDatabase() const
|
||||
{
|
||||
#if QT_CONFIG(mimetype_database)
|
||||
return m_directory == internalMimeFileName();
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
QMimeType QMimeXMLProvider::mimeTypeForName(const QString &name)
|
||||
|
Loading…
Reference in New Issue
Block a user