Patch #2866 2009-12-20 19:15

techy

Make wildcard select in multiselectdlg work properly
Download
2866-Make_wildcard.patch (492 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2009-12-31 16:23
Assigned to
mortenmacfly
Index: src/sdk/multiselectdlg.cpp
===================================================================
--- src/sdk/multiselectdlg.cpp    (revision 5986)
+++ src/sdk/multiselectdlg.cpp    (working copy)
@@ -124,7 +124,7 @@
             bool MatchesWildCard = false;
             for (unsigned int x = 0; x < wilds.GetCount(); ++x)
             {
-                if (entry.Matches(wilds[x]))
+                if (entry.Matches(wilds[x].Lower()))
                 {
                     lst->Check(i, select);
                     MatchesWildCard = true;
techy 2009-12-20 19:18

At work we use c++ files with extension C. When adding files recursively into project, in multiple selection dialog I used wildcard select with *.C - surprisingly with no selection. The reason is that while the filename is converted in lowercase during match detection, the wildcard isn't, which leads to the surprising behaviour.