diff --git a/gpt4all-chat/database.h b/gpt4all-chat/database.h index 5538ab61..90312290 100644 --- a/gpt4all-chat/database.h +++ b/gpt4all-chat/database.h @@ -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; } };