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

@@ -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;
}
}