mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 01:57:07 -07:00
Merge latest fixes from stable branch
This commit is contained in:
parent
b67938aa3f
commit
4e1366bf0d
8 changed files with 69 additions and 29 deletions
|
@ -763,9 +763,14 @@ void TransferListWidget::openSelectedTorrentsFolder() const {
|
|||
const QTorrentHandle &h = BTSession->getTorrentHandle(hash);
|
||||
if(h.is_valid()) {
|
||||
const QString &savePath = h.root_path();
|
||||
qDebug("Opening path at %s", qPrintable(savePath));
|
||||
if(!pathsList.contains(savePath)) {
|
||||
pathsList.append(savePath);
|
||||
#ifdef Q_WS_WIN
|
||||
QDesktopServices::openUrl(QUrl(QString("file:///")+savePath));
|
||||
#else
|
||||
QDesktopServices::openUrl(QUrl(QString("file://")+savePath));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue