Fix incorrect regex validator
This fixes the bug where an empty line wouldn't clear the metatile label. It also removes the '.' and '-' characters.
This commit is contained in:
parent
01c6d09bc2
commit
6b661db952
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ void TilesetEditor::init(Project *project, QString primaryTilesetLabel, QString
|
|||
this->ui->spinBox_paletteSelector->setMaximum(Project::getNumPalettesTotal() - 1);
|
||||
|
||||
//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->lineEdit_metatileLabel->setValidator(validator);
|
||||
|
||||
|
|
Loading…
Reference in a new issue