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
4 changed files with 13 additions and 3 deletions

View File

@@ -120,6 +120,13 @@ AddTorrentData::AddTorrentData(const AddTorrentParams &params)
, ratioLimit(params.ignoreShareLimits ? TorrentHandle::NO_RATIO_LIMIT : TorrentHandle::USE_GLOBAL_RATIO)
, seedingTimeLimit(params.ignoreShareLimits ? TorrentHandle::NO_SEEDING_TIME_LIMIT : TorrentHandle::USE_GLOBAL_SEEDING_TIME)
{
bool useAutoTMM = (params.useAutoTMM == TriStateBool::Undefined
? !Session::instance()->isAutoTMMDisabledByDefault()
: params.useAutoTMM == TriStateBool::True);
if (useAutoTMM)
savePath = "";
else if (savePath.trimmed().isEmpty())
savePath = Session::instance()->defaultSavePath();
}
// TorrentState