Skip to content

TorrentFileTreeModel: calculate index using real model rather than proxy model

Jack Hill requested to merge jackh/ktorrent:fix-filetree into master

We are iterating through the real model, so we must create indices of the real model.

Fixes the file tree not saving the expanded state correctly. Also fixes these warnings that appear when switching between multi-torrent files:

Warning: QSortFilterProxyModel: index from wrong model passed to mapToSource

Merge request reports