mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
fix filtering issues for views that show a directory hierarchy like a tree view or a column view: the directories should not get filtered
svn path=/trunk/KDE/kdebase/apps/; revision=716873
This commit is contained in:
parent
ffe9f62839
commit
1db9b6c3c4
1 changed files with 0 additions and 10 deletions
|
@ -452,18 +452,8 @@ void DolphinViewContainer::changeNameFilter(const QString& nameFilter)
|
|||
adjustedFilter.insert(0, '*');
|
||||
adjustedFilter.append('*');
|
||||
|
||||
// Use the ProxyModel to filter:
|
||||
// This code is #ifdefed as setNameFilter behaves
|
||||
// slightly different than the QSortFilterProxyModel
|
||||
// as it will not remove directories. I will ask
|
||||
// our beloved usability experts for input
|
||||
// -- z.
|
||||
#if 0
|
||||
m_dirLister->setNameFilter(adjustedFilter);
|
||||
m_dirLister->emitChanges();
|
||||
#else
|
||||
m_proxyModel->setFilterRegExp(nameFilter);
|
||||
#endif
|
||||
|
||||
updateStatusBar();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue