Browse Source

Enable preferences Apply button when ip banlist is modified

adaptive-webui-19844
Thomas Piccirello 7 years ago
parent
commit
da0db92b9f
  1. 5
      src/gui/banlistoptions.cpp
  2. 5
      src/gui/optionsdlg.cpp

5
src/gui/banlistoptions.cpp

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

5
src/gui/optionsdlg.cpp

@ -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…
Cancel
Save