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.
for (BitTorrent::Torrent *const torrent : asConst(getSelectedTorrents()))
{
const Path contentPath = torrent->actualStorageLocation() / torrent->contentPath();
const Path contentPath = torrent->contentPath();
paths.insert(contentPath);
}
MacUtils::openFiles(PathList(paths.cbegin(), paths.cend()));