]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Ignore search-results in the treeview, as showing equal directory names without path...
authorPeter Penz <peter.penz19@gmail.com>
Thu, 7 Oct 2010 13:42:17 +0000 (13:42 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 7 Oct 2010 13:42:17 +0000 (13:42 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1183472

src/panels/folders/folderspanel.cpp

index 1dabefd110dd36fe9ca91ed0bedf7b0334b0b58e..134d8ba7e32b57413a55f2c210e5f3939777aa60 100644 (file)
@@ -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;