mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Enable preferences Apply button when ip banlist is modified
This commit is contained in:
parent
95bf63330e
commit
da0db92b9f
2 changed files with 7 additions and 3 deletions
|
@ -70,8 +70,11 @@ void BanListOptions::on_buttonBox_accepted()
|
||||||
IPList << index.data().toString();
|
IPList << index.data().toString();
|
||||||
}
|
}
|
||||||
BitTorrent::Session::instance()->setBannedIPs(IPList);
|
BitTorrent::Session::instance()->setBannedIPs(IPList);
|
||||||
|
QDialog::accept();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
QDialog::reject();
|
||||||
}
|
}
|
||||||
QDialog::accept();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BanListOptions::on_buttonBanIP_clicked()
|
void BanListOptions::on_buttonBanIP_clicked()
|
||||||
|
|
|
@ -1732,8 +1732,9 @@ bool OptionsDialog::webUIAuthenticationOk()
|
||||||
|
|
||||||
void OptionsDialog::on_banListButton_clicked()
|
void OptionsDialog::on_banListButton_clicked()
|
||||||
{
|
{
|
||||||
// have to call dialog window
|
// call dialog window
|
||||||
BanListOptions(this).exec();
|
if (BanListOptions(this).exec() == QDialog::Accepted)
|
||||||
|
enableApplyButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionsDialog::on_IPSubnetWhitelistButton_clicked()
|
void OptionsDialog::on_IPSubnetWhitelistButton_clicked()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue