From 1b3d4a44e0671fd41077ce441f1853546d5bd684 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Mon, 20 Apr 2020 16:48:19 -0400 Subject: [PATCH] Forbid . and - in new tileset names --- src/ui/newtilesetdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/newtilesetdialog.cpp b/src/ui/newtilesetdialog.cpp index a2d5f3f4..0639fab3 100644 --- a/src/ui/newtilesetdialog.cpp +++ b/src/ui/newtilesetdialog.cpp @@ -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);