1
0
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:
Thomas Piccirello 2017-10-10 01:20:03 -04:00
parent 95bf63330e
commit da0db92b9f
2 changed files with 7 additions and 3 deletions

View File

@ -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()

View File

@ -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()