[network/ruqola] src/core/model: Search with insensitive

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 6ee82d14ed29ef1148e41fa002a5a14ae28a3fdb by Laurent Montel.
Committed on 27/07/2026 at 21:18.
Pushed by mlaurent into branch 'master'.

Search with insensitive

M  +2    -2    src/core/model/filesforroomfilterproxymodel.cpp

https://invent.kde.org/network/ruqola/-/commit/6ee82d14ed29ef1148e41fa002a5a14ae28a3fdb

diff --git a/src/core/model/filesforroomfilterproxymodel.cpp b/src/core/model/filesforroomfilterproxymodel.cpp
index fe8641da28..ae639a3851 100644
--- a/src/core/model/filesforroomfilterproxymodel.cpp
+++ b/src/core/model/filesforroomfilterproxymodel.cpp
@@ -79,12 +79,12 @@ bool FilesForRoomFilterProxyModel::filterAcceptsRow(int source_row, const QModel
     if (mSearchText.isEmpty() && mTypeGroup.isEmpty()) {
         return true;
     } else {
-        const bool indexContains = fileName.contains(mSearchText) || username.contains(mSearchText);
+        const bool indexContains = fileName.contains(mSearchText, Qt::CaseInsensitive) || username.contains(mSearchText, Qt::CaseInsensitive);
         if (!mSearchText.isEmpty() && mTypeGroup.isEmpty()) {
             return indexContains;
         }
         if (!mTypeGroup.isEmpty()) {
-            return (mTypeGroup == typegroup) && (indexContains);
+            return (mTypeGroup == typegroup) && indexContains;
         }
     }
     return false;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.