Forbid . and - in new tileset names
This commit is contained in:
parent
4a23c90695
commit
1b3d4a44e0
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ NewTilesetDialog::NewTilesetDialog(Project* project, QWidget *parent) :
|
|||
this->setFixedSize(this->width(), this->height());
|
||||
this->project = project;
|
||||
//only allow characters valid for a symbol
|
||||
QRegExp expression("[-_.A-Za-z0-9]+$");
|
||||
QRegExp expression("[_A-Za-z0-9]+$");
|
||||
QRegExpValidator *validator = new QRegExpValidator(expression);
|
||||
this->ui->nameLineEdit->setValidator(validator);
|
||||
|
||||
|
|
Loading…
Reference in a new issue