Calling KDirLister from plasma widget causes no files to be found.

David Hubner hubnerd at ntlworld.com
Sat Aug 29 15:39:32 CEST 2009


Hi,

Calling KIO::KDirLister from a plasma widget causes no files to be listed by
KDirLister. 

An example is the Trash Widget, m_dirlister->openUrl(KUrl("Trash:/")); is
called but when the signal slotCompleted is thrown,
m_dirlister->items(KDirLister::AllItems).count() shows 0 files.

This is also related to bug 167388, 193176, 203488 as well as the freeze on
desktop-settings opening the KFileDialog, when i force KDirLister to
updateDirectory( _url ) by modifing the KIO::KDirLister code all bugs go away. 

This bug only shows through plasma which is why i have listed it as a plasma
bug. Calling KIO::KDirLister through a normal app and not a widget works
correctly. 

I for one cannot see why this happens only through plasma. Using KDirLister::Keep or KDirLister::Reload does not help. 
-- 
David Hubner
IRC: Kirsan
MSN: hubnerd at hubnerd.org
ICQ: 24308559


More information about the Plasma-devel mailing list