Skip to content
Commit 4d5058bd authored by Wolfgang Bauer's avatar Wolfgang Bauer
Browse files

Fix torrent download with remote .torrent files

In case of a remote Url, the .torrent file is downloaded to a temporary
location first, and then that local file is used as source for the
actual torrent download.
But QUrl::QUrl() (that's used implicitly here to convert the QString to
QUrl) expects an Url, passing it a local path (without "file://")
results in an invalid Url which caused the download to fail.

Using QUrl::fromLocalFile() to convert the local path to QUrl fixes that
problem.
parent c4255c28
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment