mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Another fix for torrent addition from Web browser
This commit is contained in:
@@ -229,7 +229,7 @@ void torrentAdditionDialog::showLoad(QString filePath, QString from_url) {
|
||||
|
||||
// This is an URL to a local file, switch to local path
|
||||
if(filePath.startsWith("file:", Qt::CaseInsensitive))
|
||||
filePath = QUrl(filePath).toLocalFile();
|
||||
filePath = QUrl::fromEncoded(filePath.toLocal8Bit()).toLocalFile();
|
||||
|
||||
if(!QFile::exists(filePath)) {
|
||||
close();
|
||||
|
||||
Reference in New Issue
Block a user