mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- "Open destination folder" now opens torrent root folder (if it contains one) instead of the parent folder
This commit is contained in:
parent
660a6929fd
commit
8ed0e58d63
3 changed files with 12 additions and 2 deletions
|
@ -529,7 +529,7 @@ void TransferListWidget::torrentDoubleClicked(QModelIndex index) {
|
|||
}
|
||||
break;
|
||||
case OPEN_DEST:
|
||||
QDesktopServices::openUrl("file://" + h.save_path());
|
||||
QDesktopServices::openUrl("file://" + h.root_path());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -663,7 +663,7 @@ void TransferListWidget::openSelectedTorrentsFolder() const {
|
|||
foreach(const QModelIndex &index, selectedIndexes) {
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(getHashFromRow(mapToSource(index).row()));
|
||||
if(h.is_valid()) {
|
||||
QString savePath = h.save_path();
|
||||
QString savePath = h.root_path();
|
||||
if(!pathsList.contains(savePath)) {
|
||||
pathsList.append(savePath);
|
||||
QDesktopServices::openUrl(QUrl(QString("file://")+savePath));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue