From 9e4991aced0571eb8db1fc07dfb7a5000932ed33 Mon Sep 17 00:00:00 2001 From: AT Date: Wed, 10 Jul 2024 19:08:24 -0400 Subject: [PATCH] Fix for issue #2609. Provide case insensitive matching of localdocs file extensions. Signed-off-by: Adam Treat --- gpt4all-chat/database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-chat/database.cpp b/gpt4all-chat/database.cpp index b24e99ef..e899b1c7 100644 --- a/gpt4all-chat/database.cpp +++ b/gpt4all-chat/database.cpp @@ -1459,7 +1459,7 @@ void Database::scanDocuments(int folder_id, const QString &folder_path) continue; } - if (!m_scannedFileExtensions.contains(fileInfo.suffix())) + if (!m_scannedFileExtensions.contains(fileInfo.suffix(), Qt::CaseInsensitive)) continue; DocumentInfo info;