[users] Use convenience method for labeling Full Name
This commit is contained in:
parent
0813ec3327
commit
6c930af5cb
@ -278,20 +278,9 @@ UsersPage::setWriteRootPassword( bool write )
|
||||
|
||||
|
||||
void
|
||||
UsersPage::onFullNameTextEdited( const QString& textRef )
|
||||
UsersPage::onFullNameTextEdited( const QString& fullName )
|
||||
{
|
||||
if ( textRef.isEmpty() )
|
||||
{
|
||||
ui->labelFullNameError->clear();
|
||||
ui->labelFullName->clear();
|
||||
m_readyFullName = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->labelFullName->setPixmap(
|
||||
CalamaresUtils::defaultPixmap( CalamaresUtils::Yes, CalamaresUtils::Original, ui->labelFullName->size() ) );
|
||||
m_readyFullName = true;
|
||||
}
|
||||
labelStatus( ui->labelFullName, ui->labelFullNameError, fullName, QString(), m_readyFullName );
|
||||
checkReady( isReady() );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user