mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 04:49:47 -07:00
Merge pull request #12206 from thalieht/monitoredTMM
Disable Auto TMM when not using default savepath from monitored folder
This commit is contained in:
commit
f44f1ffc97
1 changed files with 6 additions and 2 deletions
|
@ -349,10 +349,14 @@ void ScanFoldersModel::addTorrentsToSession(const QStringList &pathList)
|
||||||
qDebug("File %s added", qUtf8Printable(file));
|
qDebug("File %s added", qUtf8Printable(file));
|
||||||
|
|
||||||
BitTorrent::AddTorrentParams params;
|
BitTorrent::AddTorrentParams params;
|
||||||
if (downloadInWatchFolder(file))
|
if (downloadInWatchFolder(file)) {
|
||||||
params.savePath = QFileInfo(file).dir().path();
|
params.savePath = QFileInfo(file).dir().path();
|
||||||
else if (!downloadInDefaultFolder(file))
|
params.useAutoTMM = TriStateBool::False;
|
||||||
|
}
|
||||||
|
else if (!downloadInDefaultFolder(file)) {
|
||||||
params.savePath = downloadPathTorrentFolder(file);
|
params.savePath = downloadPathTorrentFolder(file);
|
||||||
|
params.useAutoTMM = TriStateBool::False;
|
||||||
|
}
|
||||||
|
|
||||||
if (file.endsWith(".magnet", Qt::CaseInsensitive)) {
|
if (file.endsWith(".magnet", Qt::CaseInsensitive)) {
|
||||||
QFile f(file);
|
QFile f(file);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue