Patch for side bar trees

Koos Vriezen koos.vriezen at xs4all.nl
Mon Apr 5 18:28:55 BST 2004


Hi,

Tiny patch for allowing programs:/ and settings:/ as Folder|Folder item. W/o this patch
these trees aren't expandable.
The difference is that the kioslave for files does not add an '/' after a directory
and the slave for these two does.


diff -u -3 -p -r1.35 dirtree_module.cpp
--- dirtree_module.cpp  8 Feb 2004 21:15:50 -0000       1.35
+++ dirtree_module.cpp  5 Apr 2004 17:22:21 -0000
@@ -377,7 +377,7 @@ void KonqSidebarDirTreeModule::slotNewIt
     KFileItem * firstItem = const_cast<KFileItemList&>(entries).first(); // qlist sucks for constness

     // Find parent item - it's the same for all the items
-    KURL dir( firstItem->url() );
+    KURL dir( firstItem->url().url(-1) );
     dir.setFileName( "" );
     dir.setPass( QString::null );
     kdDebug(1201) << this << " KonqSidebarDirTreeModule::slotNewItems dir=" << dir.url(-1) << endl;


Koos




More information about the kfm-devel mailing list