mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
FEATURE: Torrent files can be exported to a given directory
BUGFIX: Fix crash when double-clicking on a torrent that has no metadata to open its save path
This commit is contained in:
parent
9bd40a9b79
commit
a03ad3de23
9 changed files with 225 additions and 26 deletions
|
@ -581,7 +581,10 @@ void TransferListWidget::torrentDoubleClicked(QModelIndex index) {
|
|||
}
|
||||
break;
|
||||
case OPEN_DEST:
|
||||
QDesktopServices::openUrl("file://" + h.root_path());
|
||||
if(h.has_metadata())
|
||||
QDesktopServices::openUrl("file://" + h.root_path());
|
||||
else
|
||||
QDesktopServices::openUrl("file://" + h.save_path());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue