mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Fix state of IP filter widgets.
This commit is contained in:
parent
729fbb2e50
commit
a7dcf20ed1
@ -305,6 +305,9 @@ OptionsDialog::OptionsDialog(QWidget *parent)
|
||||
connect(m_ui->textProxyPassword, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
// Misc tab
|
||||
connect(m_ui->checkIPFilter, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(m_ui->checkIPFilter, SIGNAL(toggled(bool)), m_ui->textFilterPath, SLOT(setEnabled(bool)));
|
||||
connect(m_ui->checkIPFilter, SIGNAL(toggled(bool)), m_ui->browseFilterButton, SLOT(setEnabled(bool)));
|
||||
connect(m_ui->checkIPFilter, SIGNAL(toggled(bool)), m_ui->IpFilterRefreshBtn, SLOT(setEnabled(bool)));
|
||||
connect(m_ui->checkIpFilterTrackers, SIGNAL(toggled(bool)), SLOT(enableApplyButton()));
|
||||
connect(m_ui->textFilterPath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(m_ui->checkEnableQueueing, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
@ -873,8 +876,11 @@ void OptionsDialog::loadOptions()
|
||||
enableProxy(m_ui->comboProxyType->currentIndex());
|
||||
|
||||
m_ui->checkIPFilter->setChecked(session->isIPFilteringEnabled());
|
||||
m_ui->checkIpFilterTrackers->setChecked(session->isTrackerFilteringEnabled());
|
||||
m_ui->textFilterPath->setEnabled(m_ui->checkIPFilter->isChecked());
|
||||
m_ui->textFilterPath->setText(Utils::Fs::toNativePath(session->IPFilterFile()));
|
||||
m_ui->browseFilterButton->setEnabled(m_ui->checkIPFilter->isChecked());
|
||||
m_ui->IpFilterRefreshBtn->setEnabled(m_ui->checkIPFilter->isChecked());
|
||||
m_ui->checkIpFilterTrackers->setChecked(session->isTrackerFilteringEnabled());
|
||||
// End Connection preferences
|
||||
|
||||
// Speed preferences
|
||||
|
Loading…
Reference in New Issue
Block a user