mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Enable preferences Apply button when ip banlist is modified
This commit is contained in:
parent
95bf63330e
commit
da0db92b9f
@ -70,8 +70,11 @@ void BanListOptions::on_buttonBox_accepted()
|
||||
IPList << index.data().toString();
|
||||
}
|
||||
BitTorrent::Session::instance()->setBannedIPs(IPList);
|
||||
QDialog::accept();
|
||||
}
|
||||
else {
|
||||
QDialog::reject();
|
||||
}
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
void BanListOptions::on_buttonBanIP_clicked()
|
||||
|
@ -1732,8 +1732,9 @@ bool OptionsDialog::webUIAuthenticationOk()
|
||||
|
||||
void OptionsDialog::on_banListButton_clicked()
|
||||
{
|
||||
// have to call dialog window
|
||||
BanListOptions(this).exec();
|
||||
// call dialog window
|
||||
if (BanListOptions(this).exec() == QDialog::Accepted)
|
||||
enableApplyButton();
|
||||
}
|
||||
|
||||
void OptionsDialog::on_IPSubnetWhitelistButton_clicked()
|
||||
|
Loading…
Reference in New Issue
Block a user