@@ -104,20 +104,6 @@ namespace
104104 return false ;
105105 }
106106
107- void openDestinationFolder (const BitTorrent::Torrent *const torrent)
108- {
109- const Path contentPath = torrent->contentPath ();
110- const Path openedPath = (!contentPath.isEmpty () ? contentPath : torrent->savePath ());
111- #ifdef Q_OS_MACOS
112- MacUtils::openFiles ({openedPath});
113- #else
114- if (torrent->filesCount () == 1 )
115- Utils::Gui::openFolderSelect (openedPath);
116- else
117- Utils::Gui::openPath (openedPath);
118- #endif
119- }
120-
121107 void removeTorrents (const QList<BitTorrent::Torrent *> &torrents, const bool isDeleteFileSelected)
122108 {
123109 auto *session = BitTorrent::Session::instance ();
@@ -592,7 +578,7 @@ void TransferListWidget::hideQueuePosColumn(bool hide)
592578 resizeColumnToContents (TransferListModel::TR_QUEUE_POSITION);
593579}
594580
595- void TransferListWidget::openSelectedTorrentsFolder () const
581+ void TransferListWidget::openSelectedTorrentsFolder ()
596582{
597583 QSet<Path> paths;
598584#ifdef Q_OS_MACOS
@@ -612,7 +598,7 @@ void TransferListWidget::openSelectedTorrentsFolder() const
612598 if (!paths.contains (openedPath))
613599 {
614600 if (torrent->filesCount () == 1 )
615- Utils::Gui::openFolderSelect (openedPath);
601+ Utils::Gui::openFolderSelect (openedPath, this );
616602 else
617603 Utils::Gui::openPath (openedPath);
618604 }
@@ -621,6 +607,20 @@ void TransferListWidget::openSelectedTorrentsFolder() const
621607#endif // Q_OS_MACOS
622608}
623609
610+ void TransferListWidget::openDestinationFolder (const BitTorrent::Torrent *const torrent)
611+ {
612+ const Path contentPath = torrent->contentPath ();
613+ const Path openedPath = (!contentPath.isEmpty () ? contentPath : torrent->savePath ());
614+ #ifdef Q_OS_MACOS
615+ MacUtils::openFiles ({openedPath});
616+ #else
617+ if (torrent->filesCount () == 1 )
618+ Utils::Gui::openFolderSelect (openedPath, this );
619+ else
620+ Utils::Gui::openPath (openedPath);
621+ #endif
622+ }
623+
624624void TransferListWidget::previewSelectedTorrents ()
625625{
626626 for (const BitTorrent::Torrent *torrent : asConst (getSelectedTorrents ()))
0 commit comments