|
|
@ -351,7 +351,7 @@ OptionsDialog::OptionsDialog(QWidget *parent) |
|
|
|
connect(m_ui->checkAdditionDialog, &QGroupBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkAdditionDialog, &QGroupBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkAdditionDialogFront, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkAdditionDialogFront, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkStartPaused, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkStartPaused, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkCreateSubfolder, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkKeepTopLevelFolder, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->deleteTorrentBox, &QGroupBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->deleteTorrentBox, &QGroupBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->deleteCancelledTorrentBox, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->deleteCancelledTorrentBox, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkExportDir, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkExportDir, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
@ -733,7 +733,7 @@ void OptionsDialog::saveOptions() |
|
|
|
AddNewTorrentDialog::setEnabled(useAdditionDialog()); |
|
|
|
AddNewTorrentDialog::setEnabled(useAdditionDialog()); |
|
|
|
AddNewTorrentDialog::setTopLevel(m_ui->checkAdditionDialogFront->isChecked()); |
|
|
|
AddNewTorrentDialog::setTopLevel(m_ui->checkAdditionDialogFront->isChecked()); |
|
|
|
session->setAddTorrentPaused(addTorrentsInPause()); |
|
|
|
session->setAddTorrentPaused(addTorrentsInPause()); |
|
|
|
session->setCreateTorrentSubfolder(m_ui->checkCreateSubfolder->isChecked()); |
|
|
|
session->setKeepTorrentTopLevelFolder(m_ui->checkKeepTopLevelFolder->isChecked()); |
|
|
|
ScanFoldersModel::instance()->removeFromFSWatcher(m_removedScanDirs); |
|
|
|
ScanFoldersModel::instance()->removeFromFSWatcher(m_removedScanDirs); |
|
|
|
ScanFoldersModel::instance()->addToFSWatcher(m_addedScanDirs); |
|
|
|
ScanFoldersModel::instance()->addToFSWatcher(m_addedScanDirs); |
|
|
|
ScanFoldersModel::instance()->makePersistent(); |
|
|
|
ScanFoldersModel::instance()->makePersistent(); |
|
|
@ -977,7 +977,7 @@ void OptionsDialog::loadOptions() |
|
|
|
m_ui->checkAdditionDialog->setChecked(AddNewTorrentDialog::isEnabled()); |
|
|
|
m_ui->checkAdditionDialog->setChecked(AddNewTorrentDialog::isEnabled()); |
|
|
|
m_ui->checkAdditionDialogFront->setChecked(AddNewTorrentDialog::isTopLevel()); |
|
|
|
m_ui->checkAdditionDialogFront->setChecked(AddNewTorrentDialog::isTopLevel()); |
|
|
|
m_ui->checkStartPaused->setChecked(session->isAddTorrentPaused()); |
|
|
|
m_ui->checkStartPaused->setChecked(session->isAddTorrentPaused()); |
|
|
|
m_ui->checkCreateSubfolder->setChecked(session->isCreateTorrentSubfolder()); |
|
|
|
m_ui->checkKeepTopLevelFolder->setChecked(session->isKeepTorrentTopLevelFolder()); |
|
|
|
const TorrentFileGuard::AutoDeleteMode autoDeleteMode = TorrentFileGuard::autoDeleteMode(); |
|
|
|
const TorrentFileGuard::AutoDeleteMode autoDeleteMode = TorrentFileGuard::autoDeleteMode(); |
|
|
|
m_ui->deleteTorrentBox->setChecked(autoDeleteMode != TorrentFileGuard::Never); |
|
|
|
m_ui->deleteTorrentBox->setChecked(autoDeleteMode != TorrentFileGuard::Never); |
|
|
|
m_ui->deleteCancelledTorrentBox->setChecked(autoDeleteMode == TorrentFileGuard::Always); |
|
|
|
m_ui->deleteCancelledTorrentBox->setChecked(autoDeleteMode == TorrentFileGuard::Always); |
|
|
|