Make sure the FullName is not empty.
This commit is contained in:
parent
a65963f5b0
commit
cb83e22ded
@ -102,7 +102,9 @@ UsersPage::createJobs( const QString& defaultUserGroup, const QStringList& defau
|
|||||||
|
|
||||||
Calamares::Job* j;
|
Calamares::Job* j;
|
||||||
j = new CreateUserJob( ui->textBoxUsername->text(),
|
j = new CreateUserJob( ui->textBoxUsername->text(),
|
||||||
QString(),
|
ui->textBoxFullName->text().isEmpty() ?
|
||||||
|
ui->textBoxUsername->text() :
|
||||||
|
ui->textBoxFullName->text(),
|
||||||
ui->checkBoxLoginAuto->isChecked(),
|
ui->checkBoxLoginAuto->isChecked(),
|
||||||
defaultUserGroup,
|
defaultUserGroup,
|
||||||
defaultGroupsList );
|
defaultGroupsList );
|
||||||
|
Loading…
Reference in New Issue
Block a user