|
|
@ -601,10 +601,11 @@ void TransferListWidget::torrentDoubleClicked(const QModelIndex& index) { |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case OPEN_DEST: |
|
|
|
case OPEN_DEST: |
|
|
|
if(h.has_metadata()) |
|
|
|
#ifdef Q_WS_WIN |
|
|
|
QDesktopServices::openUrl(QUrl("file://" + h.root_path())); |
|
|
|
QDesktopServices::openUrl(QUrl("file:///" + h.save_path())); |
|
|
|
else |
|
|
|
#else |
|
|
|
QDesktopServices::openUrl(QUrl("file://" + h.save_path())); |
|
|
|
QDesktopServices::openUrl(QUrl("file://" + h.save_path())); |
|
|
|
|
|
|
|
#endif |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -764,7 +765,7 @@ void TransferListWidget::openSelectedTorrentsFolder() const { |
|
|
|
foreach(const QString &hash, hashes) { |
|
|
|
foreach(const QString &hash, hashes) { |
|
|
|
const QTorrentHandle &h = BTSession->getTorrentHandle(hash); |
|
|
|
const QTorrentHandle &h = BTSession->getTorrentHandle(hash); |
|
|
|
if(h.is_valid()) { |
|
|
|
if(h.is_valid()) { |
|
|
|
const QString &savePath = h.root_path(); |
|
|
|
const QString &savePath = h.save_path(); |
|
|
|
qDebug("Opening path at %s", qPrintable(savePath)); |
|
|
|
qDebug("Opening path at %s", qPrintable(savePath)); |
|
|
|
if(!pathsList.contains(savePath)) { |
|
|
|
if(!pathsList.contains(savePath)) { |
|
|
|
pathsList.append(savePath); |
|
|
|
pathsList.append(savePath); |
|
|
|