mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-12 07:48:04 +00:00
Enable preferences Apply button when ip banlist is modified
This commit is contained in:
parent
95bf63330e
commit
da0db92b9f
@ -70,9 +70,12 @@ 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();
|
QDialog::accept();
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
QDialog::reject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
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…
Reference in New Issue
Block a user