Case insensitive compare that pairs with issue #2609 and previous commit (#2684)

9e4991aced that allowed case insensitive
matches of file extensions.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
AT 2024-07-17 16:08:09 -04:00 committed by GitHub
parent ca72428783
commit a2be63e42b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ struct DocumentInfo
size_t currentPosition = 0;
bool currentlyProcessing = false;
bool isPdf() const {
return doc.suffix() == u"pdf"_s;
return doc.suffix().compare(u"pdf"_s, Qt::CaseInsensitive) == 0;
}
};