Fix explicit Torrent Management Mode in Add New Torrent dialog. Closes #5602.

This commit is contained in:
sledgehammer999 2017-08-05 23:11:40 +03:00
parent 8214d25f9f
commit 6270433237
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
4 changed files with 13 additions and 3 deletions

View file

@ -1855,9 +1855,7 @@ bool Session::addTorrent(const TorrentInfo &torrentInfo, const AddTorrentParams
bool Session::addTorrent_impl(AddTorrentData addData, const MagnetUri &magnetUri,
TorrentInfo torrentInfo, const QByteArray &fastresumeData)
{
addData.savePath = normalizeSavePath(
addData.savePath,
((!addData.resumed && isAutoTMMDisabledByDefault()) ? defaultSavePath() : ""));
addData.savePath = normalizeSavePath(addData.savePath, "");
if (!addData.category.isEmpty()) {
if (!m_categories.contains(addData.category) && !addCategory(addData.category)) {