From: Peter Penz Date: Thu, 7 Oct 2010 13:42:17 +0000 (+0000) Subject: Ignore search-results in the treeview, as showing equal directory names without path... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/06b0569613e918e5f73d762a54df041a38385195?ds=inline Ignore search-results in the treeview, as showing equal directory names without path makes no sense. svn path=/trunk/KDE/kdebase/apps/; revision=1183472 --- diff --git a/src/panels/folders/folderspanel.cpp b/src/panels/folders/folderspanel.cpp index 1dabefd11..134d8ba7e 100644 --- a/src/panels/folders/folderspanel.cpp +++ b/src/panels/folders/folderspanel.cpp @@ -109,6 +109,12 @@ void FoldersPanel::setUrl(const KUrl& url) return; } + if (url.protocol().contains("search")) { + // Skip results shown by a search, as possible identical + // directory names are useless without parent-path information. + return; + } + Panel::setUrl(url); if (m_dirLister != 0) { m_setLeafVisible = true;