Browse Source

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

it already provides absolute path, no additional manipulations
are required.
adaptive-webui-19844
Nick Korotysh 2 years ago
parent
commit
53ea1843ab
No known key found for this signature in database
GPG Key ID: 7D0D4117C97CCC46
  1. 2
      src/gui/transferlistwidget.cpp

2
src/gui/transferlistwidget.cpp

@ -552,7 +552,7 @@ void TransferListWidget::openSelectedTorrentsFolder() const @@ -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()));

Loading…
Cancel
Save