mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Move Utils::Misc::isUrl() function
All usage of this function gets to call Net::DownloadManager eventually.
This commit is contained in:
parent
6759446639
commit
2b903fc3d1
10 changed files with 20 additions and 18 deletions
|
@ -2094,7 +2094,7 @@ bool Session::addTorrent(const QString &source, const AddTorrentParams ¶ms)
|
|||
{
|
||||
// `source`: .torrent file path/url or magnet uri
|
||||
|
||||
if (Utils::Misc::isUrl(source)) {
|
||||
if (Net::DownloadManager::hasSupportedScheme(source)) {
|
||||
LogMsg(tr("Downloading '%1', please wait...", "e.g: Downloading 'xxx.torrent', please wait...").arg(source));
|
||||
// Launch downloader
|
||||
Net::DownloadHandler *handler =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue