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:
Helio Chissini de Castro 2020-10-11 19:16:55 +02:00 committed by Thiago Macieira
parent f7f1a71ea4
commit c67ea659e5

View File

@ -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)