Use std::optional<bool> instead of custom TriStateBool

This commit is contained in:
Vladimir Golovnev (Glassez)
2021-01-02 16:55:17 +03:00
committed by sledgehammer999
parent 9317071122
commit 74bf3af41c
17 changed files with 75 additions and 235 deletions

View File

@@ -366,12 +366,12 @@ void ScanFoldersModel::addTorrentsToSession(const QStringList &pathList)
if (downloadInWatchFolder(file))
{
params.savePath = QFileInfo(file).dir().path();
params.useAutoTMM = TriStateBool::False;
params.useAutoTMM = false;
}
else if (!downloadInDefaultFolder(file))
{
params.savePath = downloadPathTorrentFolder(file);
params.useAutoTMM = TriStateBool::False;
params.useAutoTMM = false;
}
if (file.endsWith(".magnet", Qt::CaseInsensitive))