mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Fix torrent addition from browser
This commit is contained in:
parent
53b6a25442
commit
3bba7578af
1 changed files with 5 additions and 0 deletions
|
@ -226,6 +226,11 @@ void torrentAdditionDialog::showLoadMagnetURI(QString magnet_uri) {
|
||||||
|
|
||||||
void torrentAdditionDialog::showLoad(QString filePath, QString from_url) {
|
void torrentAdditionDialog::showLoad(QString filePath, QString from_url) {
|
||||||
is_magnet = false;
|
is_magnet = false;
|
||||||
|
|
||||||
|
// This is an URL to a local file, switch to local path
|
||||||
|
if(filePath.startsWith("file:", Qt::CaseInsensitive))
|
||||||
|
filePath = QUrl(filePath).toLocalFile();
|
||||||
|
|
||||||
if(!QFile::exists(filePath)) {
|
if(!QFile::exists(filePath)) {
|
||||||
close();
|
close();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue