fixed: Bug #2836 - Unable to begin screen name or alias with numbers

This commit is contained in:
Nick Bolton 2014-03-14 13:52:21 +00:00
parent 29b48e98e3
commit 053806ce5b
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ ScreenSettingsDialog::ScreenSettingsDialog(QWidget* parent, Screen* pScreen) :
{ {
setupUi(this); setupUi(this);
QRegExp validScreenName("[a-z_][a-z0-9\\._-]{,31}", Qt::CaseInsensitive); QRegExp validScreenName("[a-z0-9\\._-]{,255}", Qt::CaseInsensitive);
m_pLineEditName->setText(m_pScreen->name()); m_pLineEditName->setText(m_pScreen->name());
m_pLineEditName->setValidator(new QRegExpValidator(validScreenName, m_pLineEditName)); m_pLineEditName->setValidator(new QRegExpValidator(validScreenName, m_pLineEditName));