Fix to not allow empty profile names on profile creation

This commit is contained in:
defnax 2021-09-05 19:43:07 +02:00
parent 6db102c2be
commit 154148d77f

View File

@ -407,7 +407,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().trimmed().length() >= 3)
ui.profile_name_check_LB ->setPixmap(good) ;
else
{