[PATCH] sorted kfiletreeviews

David Faure faure at kde.org
Tue Dec 4 18:27:40 GMT 2007


On Sunday 02 December 2007, Benjamin K. Stuhl wrote:
> Hi Rafael,
>   I saw you wrestling with this, so I thought I'd take a stab at it.
> This patch works for me -- the important part is setting _k_expanded()
> as a queued slot, so that the proxy model is updated before we try to
> map the new index through it. Comments? OK to commit?

Discussed on irc, we found the root cause: KDirModel emitting expand() before rowsInserted(), which confused the proxy model.
Fixed in KDirModel; committed the kfiletreeview fix without the QueuedConnection workaround.
Good team work, thanks to everyone involved :)
One bug down, plenty more to go.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list