mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
parent
dbd079dfb8
commit
c4e9291db4
2 changed files with 0 additions and 10 deletions
|
@ -1368,9 +1368,6 @@ bool Session::addTorrent_impl(AddTorrentData addData, const MagnetUri &magnetUri
|
|||
p.max_connections = pref->getMaxConnecsPerTorrent();
|
||||
p.max_uploads = pref->getMaxUploadsPerTorrent();
|
||||
p.save_path = Utils::String::toStdString(Utils::Fs::toNativePath(savePath));
|
||||
// Check if save path exists, creating it otherwise
|
||||
if (!QDir(savePath).exists())
|
||||
QDir().mkpath(savePath);
|
||||
|
||||
m_addingTorrents.insert(hash, addData);
|
||||
// Adding torrent to BitTorrent session
|
||||
|
@ -1460,9 +1457,6 @@ bool Session::loadMetadata(const MagnetUri &magnetUri)
|
|||
|
||||
QString savePath = QString("%1/%2").arg(QDir::tempPath()).arg(hash);
|
||||
p.save_path = Utils::String::toStdString(Utils::Fs::toNativePath(savePath));
|
||||
// Check if save path exists, creating it otherwise
|
||||
if (!QDir(savePath).exists())
|
||||
QDir().mkpath(savePath);
|
||||
|
||||
// Forced start
|
||||
p.flags &= ~libt::add_torrent_params::flag_paused;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue