Allow '-' and '_' in new addon name. Resolves Bug #1789.

This commit is contained in:
cc9cii 2014-09-10 23:30:42 +10:00
parent 85596322f3
commit faac91472c

View file

@ -17,7 +17,7 @@ CSVDoc::FileWidget::FileWidget (QWidget *parent) : QWidget (parent), mAddon (fal
QHBoxLayout *layout = new QHBoxLayout (this); QHBoxLayout *layout = new QHBoxLayout (this);
mInput = new QLineEdit (this); mInput = new QLineEdit (this);
mInput->setValidator (new QRegExpValidator(QRegExp("^[a-zA-Z0-9\\s]*$"))); mInput->setValidator (new QRegExpValidator(QRegExp("^[a-zA-Z0-9_-\\s]*$")));
layout->addWidget (mInput, 1); layout->addWidget (mInput, 1);