From ac29429783ba180bbd92548116779e522d331a22 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Wed, 19 Jan 2022 08:09:10 -0700 Subject: [PATCH] update input qt --- mupen64plus-input-qt/configdialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mupen64plus-input-qt/configdialog.cpp b/mupen64plus-input-qt/configdialog.cpp index e00a00a..7950756 100644 --- a/mupen64plus-input-qt/configdialog.cpp +++ b/mupen64plus-input-qt/configdialog.cpp @@ -352,7 +352,11 @@ ProfileEditor::ProfileEditor(QString profile, QSettings *settings, QWidget *pare activeButton = nullptr; QString section = profile; + QRegExp rx("[a-zA-Z0-9]+"); + QValidator *validator = new QRegExpValidator(rx, this); QLineEdit *profileName = new QLineEdit(this); + profileName->setValidator(validator); + profileName->setMaxLength(30); if (profile == "Auto-Keyboard" || profile == "Auto-Gamepad") { profileName->setDisabled(0); profile = "";