Summary: | Can't assign icones to files like *README* | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Vinzstyle <Vinzstyle> |
Component: | kcm_filetypes | Assignee: | Marie Loise Nolden <nolden> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Vinzstyle
2003-07-04 04:44:46 UTC
Subject: kdelibs/kdecore CVS commit by aseigo: allow matching patterns such as *README* CCMAIL:60724-done@bugs.kde.org M +5 -0 kstringhandler.cpp 1.26 --- kdelibs/kdecore/kstringhandler.cpp #1.25:1.26 @@ -509,4 +509,9 @@ bool KStringHandler::matchFileName( cons // Patterns like "Makefile*" if ( pattern[ pattern_len - 1 ] == '*' && len + 1 >= pattern_len ) { + if ( pattern[ 0 ] == '*' ) + { + return filename.find(pattern.mid(1, pattern_len - 2)) != -1; + } + const QChar *c1 = pattern.unicode(); const QChar *c2 = filename.unicode(); |