diff options
Diffstat (limited to 'src/panels/folders/folderspanel.cpp')
| -rw-r--r-- | src/panels/folders/folderspanel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; |
