diff options
| author | 2021-01-13 22:08:42 -0500 | |
|---|---|---|
| committer | 2021-01-13 22:08:42 -0500 | |
| commit | 5e35c69f35f76c07de8decd509987c648d822e61 (patch) | |
| tree | 0d1f04f89f4142cfb2853de44a41708f5b69b442 /src | |
| parent | Merge pull request #5342 from lioncash/qt6 (diff) | |
| parent | Fix IP validator error where the last octet produced an error if the value wa... (diff) | |
| download | yuzu-5e35c69f35f76c07de8decd509987c648d822e61.tar.gz yuzu-5e35c69f35f76c07de8decd509987c648d822e61.tar.xz yuzu-5e35c69f35f76c07de8decd509987c648d822e61.zip | |
Merge pull request #5330 from german77/regexerror
Fix IP validator error
Diffstat (limited to 'src')
| -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() { | |||
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | void ConfigureMotionTouch::OnUDPAddServer() { | 187 | void ConfigureMotionTouch::OnUDPAddServer() { |
| 188 | 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]" | 188 | // Validator for IP address |
| 189 | "[0-9]|[01]?[0-9][0-9]?)$)re")); // a valid ip address | 189 | QRegExp re(QStringLiteral( |
| 190 | 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")); | ||
| 190 | bool ok; | 191 | bool ok; |
| 191 | QString port_text = ui->udp_port->text(); | 192 | QString port_text = ui->udp_port->text(); |
| 192 | QString server_text = ui->udp_server->text(); | 193 | QString server_text = ui->udp_server->text(); |