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:
Phlosioneer 2019-04-07 20:46:53 -04:00
parent 01c6d09bc2
commit 6b661db952

View file

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