BUGFIX: Fix crash when double-clicking on a torrent that has no metadata to open

its save path
This commit is contained in:
Christophe Dumez
2010-01-31 13:14:22 +00:00
parent 39d4af1d6e
commit 296267ec20
2 changed files with 5 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
- BUGFIX: Make sure bandwidth limiting dialogs are centered on screen
- BUGFIX: Added support for HTTP redirection
- BUGFIX: Fix compilation error when geoip database is embedded
- BUGFIX: Fix crash when double-clicking on a torrent that has no metadata to open its save path
* Sun Jan 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.2
- FEATURE: Added back file prioritizing in a torrent

View File

@@ -554,7 +554,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;
}
}