On Monday 03 August 2009, Shantanu Tushar Jha wrote:
> Any idea what might be going wrong?

apparently m_topEntries.count() is greater than indexedFiles.count().

just looking at the line, it seems to be adding files to the root of the 
model:

        beginInsertRows(QModelIndex(), currentTopCount, indexedFiles.count());

perhaps it should be:

        beginInsertRows(index(currentTopCount, 0), 0, indexedFiles.count());

?

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to