[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
|
void
|
||||||
UsersPage::onFullNameTextEdited( const QString& textRef )
|
UsersPage::onFullNameTextEdited( const QString& fullName )
|
||||||
{
|
{
|
||||||
if ( textRef.isEmpty() )
|
labelStatus( ui->labelFullName, ui->labelFullNameError, fullName, QString(), m_readyFullName );
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
checkReady( isReady() );
|
checkReady( isReady() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user