diff options
author | LC <mathew1800@gmail.com> | 2021-01-14 04:08:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 04:08:42 +0100 |
commit | 5e35c69f35f76c07de8decd509987c648d822e61 (patch) | |
tree | 0d1f04f89f4142cfb2853de44a41708f5b69b442 | |
parent | Merge pull request #5342 from lioncash/qt6 (diff) | |
parent | Fix IP validator error where the last octet produced an error if the value was higher than 199 (diff) | |
download | yuzu-5e35c69f35f76c07de8decd509987c648d822e61.tar yuzu-5e35c69f35f76c07de8decd509987c648d822e61.tar.gz yuzu-5e35c69f35f76c07de8decd509987c648d822e61.tar.bz2 yuzu-5e35c69f35f76c07de8decd509987c648d822e61.tar.lz yuzu-5e35c69f35f76c07de8decd509987c648d822e61.tar.xz yuzu-5e35c69f35f76c07de8decd509987c648d822e61.tar.zst yuzu-5e35c69f35f76c07de8decd509987c648d822e61.zip |
-rw-r--r-- | src/yuzu/configuration/configure_motion_touch.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_motion_touch.cpp b/src/yuzu/configuration/configure_motion_touch.cpp index eb8eacbf9..9543f086d 100644 --- a/src/yuzu/configuration/configure_motion_touch.cpp +++ b/src/yuzu/configuration/configure_motion_touch.cpp @@ -185,8 +185,9 @@ void ConfigureMotionTouch::ConnectEvents() { } void ConfigureMotionTouch::OnUDPAddServer() { - QRegExp re(tr(R"re(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4]" - "[0-9]|[01]?[0-9][0-9]?)$)re")); // a valid ip address + // Validator for IP address + QRegExp re(QStringLiteral( + R"re(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$)re")); bool ok; QString port_text = ui->udp_port->text(); QString server_text = ui->udp_server->text(); |