mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-27 19:16:31 -05:00
Forbid . and - in new tileset names
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user