summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/ControllerInterface/ServerStringValidator.cpp
diff options
context:
space:
mode:
authorEthan Uppal <113849268+ethanuppal@users.noreply.github.com>2026-04-27 20:16:14 -0400
committerEthan Uppal <113849268+ethanuppal@users.noreply.github.com>2026-04-30 02:23:41 -0400
commit4e55d2518a0f68ed47983b29caa0f21e78b0cf1b (patch)
treeb0078660934ac5722b9a429495ba4c878c63bee3 /Source/Core/DolphinQt/Config/ControllerInterface/ServerStringValidator.cpp
parent0e8fa3cacaff15283900aff67af1b3ae762008d6 (diff)
Config: Add Edit button to DSU server menu
Signed-off-by: Ethan Uppal <113849268+ethanuppal@users.noreply.github.com>
Diffstat (limited to 'Source/Core/DolphinQt/Config/ControllerInterface/ServerStringValidator.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/ControllerInterface/ServerStringValidator.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Config/ControllerInterface/ServerStringValidator.cpp b/Source/Core/DolphinQt/Config/ControllerInterface/ServerStringValidator.cpp
index d951cd2069..1129a3d086 100644
--- a/Source/Core/DolphinQt/Config/ControllerInterface/ServerStringValidator.cpp
+++ b/Source/Core/DolphinQt/Config/ControllerInterface/ServerStringValidator.cpp
@@ -3,6 +3,10 @@
#include "DolphinQt/Config/ControllerInterface/ServerStringValidator.h"
+#include <string>
+
+#include "DolphinQt/Config/ControllerInterface/DualShockUDPSettings.h"
+
ServerStringValidator::ServerStringValidator(QObject* parent) : QValidator(parent)
{
}
@@ -12,10 +16,10 @@ QValidator::State ServerStringValidator::validate(QString& input, int& pos) cons
if (input.isEmpty())
return Invalid;
- if (input.contains(QStringLiteral(":")))
+ if (input.contains(QString::fromStdString(std::string{DualShockUDPSettings::FIELD_SEPARATOR})))
return Invalid;
- if (input.contains(QStringLiteral(";")))
+ if (input.contains(QString::fromStdString(std::string{DualShockUDPSettings::SERVER_SEPARATOR})))
return Invalid;
return Acceptable;