TorrentFileTreeModel: calculate index using real model rather than proxy model
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