On Saturday 29 August 2009, David Hubner wrote:
> 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.

KDirLister is able to list files in the folderview applet, although
folderview uses the itemsAdded(), itemsDeleted() etc. signals
indirectly via KDirModel instead of calling KDirLister::items().

There is a bug where KDirLister doesn't emit new items when
a file system is mounted on an empty directory being viewed
by a folderview applet though (#177156). This bug is only
reproducible in Plasma.

Regards,
Fredrik




_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to