From 3f142360ed77b9ac7ac0e12cee72f32396a609f4 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 11 Jun 2022 14:02:36 +0800 Subject: [PATCH] Fix wrong file names displayed in tooltip Closes #17179. --- src/gui/properties/piecesbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/properties/piecesbar.cpp b/src/gui/properties/piecesbar.cpp index 8a624b00e..e33ede181 100644 --- a/src/gui/properties/piecesbar.cpp +++ b/src/gui/properties/piecesbar.cpp @@ -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 << "";