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:
Peter Penz 2007-09-25 13:16:17 +00:00
parent ffe9f62839
commit 1db9b6c3c4

View file

@ -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();
}