diff --git a/src/corelib/mimetypes/qmimeprovider.cpp b/src/corelib/mimetypes/qmimeprovider.cpp index fcc6cdf088..39f4bbba2e 100644 --- a/src/corelib/mimetypes/qmimeprovider.cpp +++ b/src/corelib/mimetypes/qmimeprovider.cpp @@ -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)