Fix seeding failed after creating a new torrent

Closes #11252.
This commit is contained in:
Chocobo1 2019-09-19 16:05:12 +08:00
parent 3971bf2d58
commit e3b9659fb8
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -210,6 +210,7 @@ void TorrentCreatorDialog::handleCreationSuccess(const QString &path, const QStr
params.savePath = branchPath; params.savePath = branchPath;
params.skipChecking = true; params.skipChecking = true;
params.ignoreShareLimits = m_ui->checkIgnoreShareLimits->isChecked(); params.ignoreShareLimits = m_ui->checkIgnoreShareLimits->isChecked();
params.useAutoTMM = TriStateBool::False; // otherwise if it is on by default, it will overwrite `savePath` to the default save path
BitTorrent::Session::instance()->addTorrent(t, params); BitTorrent::Session::instance()->addTorrent(t, params);
} }