mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-10 07:10:12 -04:00
GenCertDialog fix min 3 letters length, fields rearrange for sequential display on advanced switch
This commit is contained in:
parent
d427182e1f
commit
b52c4b80dd
2 changed files with 132 additions and 147 deletions
|
@ -335,7 +335,7 @@ void GenCertDialog::updateCheckLabels()
|
|||
bool generate_new = !ui.reuse_existing_node_CB->isChecked();
|
||||
mAllFieldsOk = true ;
|
||||
|
||||
if(ui.node_input->text().length() > 3)
|
||||
if(ui.node_input->text().length() >= 3)
|
||||
ui.node_name_check_LB ->setPixmap(good) ;
|
||||
else
|
||||
{
|
||||
|
@ -343,7 +343,7 @@ void GenCertDialog::updateCheckLabels()
|
|||
ui.node_name_check_LB ->setPixmap(bad) ;
|
||||
}
|
||||
|
||||
if(!generate_new || ui.name_input->text().length() > 3)
|
||||
if(!generate_new || ui.name_input->text().length() >= 3)
|
||||
ui.profile_name_check_LB ->setPixmap(good) ;
|
||||
else
|
||||
{
|
||||
|
@ -351,14 +351,14 @@ void GenCertDialog::updateCheckLabels()
|
|||
ui.profile_name_check_LB ->setPixmap(bad) ;
|
||||
}
|
||||
|
||||
if(ui.password_input->text().length() > 3)
|
||||
if(ui.password_input->text().length() >= 3)
|
||||
ui.password_check_LB ->setPixmap(good) ;
|
||||
else
|
||||
{
|
||||
mAllFieldsOk = false ;
|
||||
ui.password_check_LB ->setPixmap(bad) ;
|
||||
}
|
||||
if(ui.password_input->text().length() > 3 && ui.password_input->text() == ui.password_input_2->text())
|
||||
if(ui.password_input->text().length() >= 3 && ui.password_input->text() == ui.password_input_2->text())
|
||||
ui.password2_check_LB ->setPixmap(good) ;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue