Fix wrong file names displayed in tooltip

Closes #17179.
This commit is contained in:
Chocobo1
2022-06-11 14:02:36 +08:00
parent af07a98784
commit 3f142360ed

View File

@@ -282,7 +282,7 @@ void PiecesBar::showToolTip(const QHelpEvent *e)
for (int f : files)
{
const QString filePath {torrentInfo.filePath(f)};
const QString filePath {m_torrent->filePath(f)};
renderer(Utils::Misc::friendlyUnit(torrentInfo.fileSize(f)), filePath);
}
stream << "</body></html>";