Skip to content

Commit

Permalink
Allow Capital letters and spaces in Register profile names.
Browse files Browse the repository at this point in the history
  • Loading branch information
epasveer committed Dec 29, 2023
1 parent e239570 commit 6dd721b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SeerRegisterProfileDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ SeerRegisterProfileDialog::SeerRegisterProfileDialog (QWidget* parent) : QDialog
registersTreeWidget->resizeColumnToContents(2); // checkbox
registersTreeWidget->clear();

QRegularExpressionValidator* validator = new QRegularExpressionValidator(QRegularExpression("[a-z0-9\\.\\-\\_]+"));
// Letters, numbers, space, period, hypen, underscore.
QRegularExpressionValidator* validator = new QRegularExpressionValidator(QRegularExpression("[a-zA-Z0-9\\ \\.\\-\\_]+"));

profileNameLineEdit->setValidator(validator);

Expand Down

0 comments on commit 6dd721b

Please sign in to comment.