From 53ea1843abdab0680156b4a9d9ceb5fb5e431a9c Mon Sep 17 00:00:00 2001 From: Nick Korotysh Date: Fri, 1 Jul 2022 23:07:02 +0200 Subject: [PATCH] Pass Torrent::contentPath() to MacUtils::openFiles() it already provides absolute path, no additional manipulations are required. --- src/gui/transferlistwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index af40bd6b6..9d17d9a9d 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -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()));