[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/konqueror/sidebar/trees/dirtree_module
From:       Jakub Stachowski <qbast () go2 ! pl>
Date:       2004-12-22 18:17:59
Message-ID: 20041222181759.CE8C91BA76 () office ! kde ! org
[Download RAW message or body]

CVS commit by qbast: 

Workaround for dirtreeview way of finding parent dir - fixes problem
with services dnssd://domain/type/name listed in dnssd:/type/ dir


  M +6 -0      dirtree_module.cpp   1.42


--- kdebase/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp  #1.41:1.42
@@ -397,4 +397,10 @@ void KonqSidebarDirTreeModule::slotNewIt
     lookupItems(m_dictSubDirs, dir.url(-1), parentItem, parentItemList);
 
+    if ( !parentItem )   // hack for dnssd://domain/type/service listed in dnssd:/type/ dir
+    {
+        dir.setHost( QString::null );
+        lookupItems( m_dictSubDirs, dir.url(-1), parentItem, parentItemList );
+    }
+        
     if( !parentItem )
     {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic