1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

Pass Torrent::contentPath() to MacUtils::openFiles()

it already provides absolute path, no additional manipulations
are required.
This commit is contained in:
Nick Korotysh 2022-07-01 23:07:02 +02:00
parent ac8a6887b6
commit 53ea1843ab
No known key found for this signature in database
GPG Key ID: 7D0D4117C97CCC46

View File

@ -552,7 +552,7 @@ void TransferListWidget::openSelectedTorrentsFolder() const
// folders prehilighted for opening, so we use a custom method. // folders prehilighted for opening, so we use a custom method.
for (BitTorrent::Torrent *const torrent : asConst(getSelectedTorrents())) for (BitTorrent::Torrent *const torrent : asConst(getSelectedTorrents()))
{ {
const Path contentPath = torrent->actualStorageLocation() / torrent->contentPath(); const Path contentPath = torrent->contentPath();
paths.insert(contentPath); paths.insert(contentPath);
} }
MacUtils::openFiles(PathList(paths.cbegin(), paths.cend())); MacUtils::openFiles(PathList(paths.cbegin(), paths.cend()));