mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
commit
0564fa6f2a
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user