Forbid . and - in new tileset names

This commit is contained in:
GriffinR 2020-04-20 16:48:19 -04:00 committed by huderlem
parent 4a23c90695
commit 1b3d4a44e0

View file

@ -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);