1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-21 10:47:16 +01:00

see #2100 carp password should be optional

This commit is contained in:
Vadim Kurland 2011-02-16 16:48:29 -08:00
parent 55973a585f
commit 59dc81c424
2 changed files with 4 additions and 23 deletions

View File

@ -1,5 +1,8 @@
2011-02-16 vadim <vadim@netcitadel.com>
* carpOptionsDialog.cpp (validate): fixes #2100 carp password
should be optional parameter
* OSConfigurator_bsd_interfaces.cpp (configureInterfaces): make
sure we print "ifconfig" commands for mtu and other parameters for
all interfaces, including those with no ip addresses and bridge

View File

@ -110,28 +110,6 @@ void carpOptionsDialog::reject()
bool carpOptionsDialog::validate()
{
bool valid = true;
QWidget *focus = NULL;
QString message;
// carp secret must be set
if (m_dialog->carp_password->text().isEmpty())
{
message = "CARP Password field can not be empty!";
focus = m_dialog->carp_password;
valid = false;
}
// if vrid is set, it must be an integer 1 <= vrid <= 255
// Now QSpinBox widget enforses boundaries
if (!valid)
{
QMessageBox::warning(this, "Firewall Builder",
tr("Input not valid: %1").arg(message), "&Continue",
QString::null, QString::null, 0, 1);
focus->setFocus();
}
return valid;
return true;
}