Summary: | Filter bar doesn't filter files with "+" pattern | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | FiNeX <finex> |
Component: | general | Assignee: | Peter Penz <peter.penz19> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | frank78ac |
Priority: | NOR | ||
Version: | 16.12.2 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
FiNeX
2009-07-30 15:21:14 UTC
The reason is that the view does not filter the files/folders using the actual contents of the filter bar, but it interprets the filter as a regular expression. "+" has a special meaning in regular expressions, which is why you need to enter "\+" in the filter bar to filter items containing it. This is not really obvious, I think ;-) It could be changed by changing m_proxyModel->setFilterRegExp(nameFilter); to m_proxyModel->setFilterFixedString(nameFilter); in DolphinView::setNameFilter(const QString& nameFilter). But on the other hand, it might be that some users rely on regular expressions for advanced filtering, so I don't know if this should really be changed or not. SVN commit 1071258 by ppenz: allow filtering for filenames having a + BUG: 202002 M +1 -1 dolphincolumnview.cpp M +1 -1 viewextensionsfactory.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1071258 SVN commit 1071261 by ppenz: Backport of SVN commit 1071258: allow filtering for filenames having a + CCBUG: 202002 M +1 -1 dolphincolumnview.cpp M +1 -1 viewextensionsfactory.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1071261 |