Merge pull request #6677 from glassez/fix-create-subfolder

Allow strip root folder using default settings
This commit is contained in:
Vladimir Golovnev
2017-04-24 12:21:53 +03:00
committed by GitHub
5 changed files with 19 additions and 16 deletions

View File

@@ -642,7 +642,7 @@ void AddNewTorrentDialog::accept()
params.filePriorities = m_contentModel->model()->getFilePriorities();
params.addPaused = TriStateBool(!ui->startTorrentCheckBox->isChecked());
params.createSubfolder = ui->createSubfolderCheckBox->isChecked();
params.createSubfolder = TriStateBool(ui->createSubfolderCheckBox->isChecked());
QString savePath = ui->savePathComboBox->itemData(ui->savePathComboBox->currentIndex()).toString();
if (ui->comboTTM->currentIndex() != 1) { // 0 is Manual mode and 1 is Automatic mode. Handle all non 1 values as manual mode.