diff options
Diffstat (limited to 'konq-plugins/dirfilter/dirfilterplugin.cpp')
-rw-r--r-- | konq-plugins/dirfilter/dirfilterplugin.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/konq-plugins/dirfilter/dirfilterplugin.cpp b/konq-plugins/dirfilter/dirfilterplugin.cpp index 0966f19..eee1284 100644 --- a/konq-plugins/dirfilter/dirfilterplugin.cpp +++ b/konq-plugins/dirfilter/dirfilterplugin.cpp @@ -388,6 +388,15 @@ void DirFilterPlugin::slotItemsAdded (const KFileItemList& list) m_pFilterMenu->setEnabled (m_part->nameFilter().isEmpty()); return; } + if ( ::qt_cast<KListView*>(m_part->scrollWidget()) ) + { + static_cast<KListViewSearchLine*>(m_searchWidget)->updateSearch(); + } + else if ( ::qt_cast<QIconView*>(m_part->scrollWidget()) ) + { + static_cast<KIconViewSearchLine*>(m_searchWidget)->updateSearch(); + } + //m_searchWidget->updateSearch(); // Make sure the filter menu is enabled once a named // filter is removed. |