┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 1efe33384..8fb16d1d5 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -968,8 +968,20 @@ void DolphinView::slotChangeNameFilter(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
}
void DolphinView::applyModeToView()