Merge pull request #2473 from defnax/fix-to-not-allow-empty-names

Fix to not allow empty profile names on profile creation
This commit is contained in:
csoler 2021-09-06 10:07:41 +02:00 committed by GitHub
commit 0564fa6f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -407,7 +407,7 @@ void GenCertDialog::updateCheckLabels()
ui.node_name_check_LB ->setPixmap(bad) ; ui.node_name_check_LB ->setPixmap(bad) ;
} }
if(!generate_new || ui.name_input->text().length() >= 3) if(!generate_new || ui.name_input->text().trimmed().length() >= 3)
ui.profile_name_check_LB ->setPixmap(good) ; ui.profile_name_check_LB ->setPixmap(good) ;
else else
{ {