Browse Source
Merge pull request #5330 from german77/regexerror
Fix IP validator error
pull/15/merge
LC
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
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(); |
|
|
|
|