|
|
@ -96,7 +96,7 @@ AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent) |
|
|
|
connect(ui->savePathComboBox, SIGNAL(currentIndexChanged(int)), SLOT(onSavePathChanged(int))); |
|
|
|
connect(ui->savePathComboBox, SIGNAL(currentIndexChanged(int)), SLOT(onSavePathChanged(int))); |
|
|
|
connect(ui->browseButton, SIGNAL(clicked()), SLOT(browseButton_clicked())); |
|
|
|
connect(ui->browseButton, SIGNAL(clicked()), SLOT(browseButton_clicked())); |
|
|
|
ui->defaultSavePathCheckBox->setVisible(false); // Default path is selected by default
|
|
|
|
ui->defaultSavePathCheckBox->setVisible(false); // Default path is selected by default
|
|
|
|
ui->createSubfolderComboBox->setChecked(Preferences::instance()->getTorrentCreateSubfolder()); |
|
|
|
ui->createSubfolderCheckBox->setChecked(session->isCreateTorrentSubfolder()); |
|
|
|
|
|
|
|
|
|
|
|
ui->doNotDeleteTorrentCheckBox->setVisible(TorrentFileGuard::autoDeleteMode() != TorrentFileGuard::Never); |
|
|
|
ui->doNotDeleteTorrentCheckBox->setVisible(TorrentFileGuard::autoDeleteMode() != TorrentFileGuard::Never); |
|
|
|
|
|
|
|
|
|
|
@ -627,7 +627,7 @@ void AddNewTorrentDialog::accept() |
|
|
|
BitTorrent::AddTorrentParams params; |
|
|
|
BitTorrent::AddTorrentParams params; |
|
|
|
|
|
|
|
|
|
|
|
// TODO: Check if destination actually exists
|
|
|
|
// TODO: Check if destination actually exists
|
|
|
|
params.skipChecking = ui->skip_check_cb->isChecked(); |
|
|
|
params.skipChecking = ui->skipCheckingCheckBox->isChecked(); |
|
|
|
|
|
|
|
|
|
|
|
// Category
|
|
|
|
// Category
|
|
|
|
params.category = ui->categoryComboBox->currentText(); |
|
|
|
params.category = ui->categoryComboBox->currentText(); |
|
|
@ -640,7 +640,7 @@ void AddNewTorrentDialog::accept() |
|
|
|
params.filePriorities = m_contentModel->model()->getFilePriorities(); |
|
|
|
params.filePriorities = m_contentModel->model()->getFilePriorities(); |
|
|
|
|
|
|
|
|
|
|
|
params.addPaused = !ui->startTorrentCheckBox->isChecked(); |
|
|
|
params.addPaused = !ui->startTorrentCheckBox->isChecked(); |
|
|
|
params.createSubfolder = ui->createSubfolderComboBox->isChecked(); |
|
|
|
params.createSubfolder = ui->createSubfolderCheckBox->isChecked(); |
|
|
|
|
|
|
|
|
|
|
|
QString savePath = ui->savePathComboBox->itemData(ui->savePathComboBox->currentIndex()).toString(); |
|
|
|
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.
|
|
|
|
if (ui->comboTTM->currentIndex() != 1) { // 0 is Manual mode and 1 is Automatic mode. Handle all non 1 values as manual mode.
|
|
|
|