[users] Apply coding style

This commit is contained in:
Adriaan de Groot 2019-11-01 13:39:16 +01:00
parent 9fa817a244
commit 28c9da414b

View File

@ -322,16 +322,14 @@ UsersPage::validateUsernameText( const QString& textRef )
}
else if ( val_start.validate( text, pos ) == QValidator::Invalid )
{
labelError(
ui->labelUsername,
labelError( ui->labelUsername,
ui->labelUsernameError,
tr( "Your username must start with a lowercase letter or underscore." ) );
m_readyUsername = false;
}
else if ( val_whole.validate( text, pos ) == QValidator::Invalid )
{
labelError(
ui->labelUsername,
labelError( ui->labelUsername,
ui->labelUsernameError,
tr( "Only lowercase letters, numbers, underscore and hyphen are allowed." ) );
m_readyUsername = false;