mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 18:17:08 -07:00
Another fix for torrent addition from Web browser
This commit is contained in:
parent
84705489fc
commit
536bd85fd0
2 changed files with 2 additions and 2 deletions
|
@ -893,7 +893,7 @@ QTorrentHandle QBtSession::addTorrent(QString path, bool fromScanDir, QString fr
|
|||
if(QFile::rename(path, path+".torrent")) path += ".torrent";
|
||||
#endif
|
||||
if(path.startsWith("file:", Qt::CaseInsensitive))
|
||||
path = QUrl(path).toLocalFile();
|
||||
path = QUrl::fromEncoded(path.toLocal8Bit()).toLocalFile();
|
||||
if(path.isEmpty()) return h;
|
||||
|
||||
Q_ASSERT(!misc::isUrl(path));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue