Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
2f1450d8
Commit
2f1450d8
authored
Jul 09, 2021
by
Kurt Hindenburg
Browse files
Fix memory link in ssh manager QRegularExpressionValidator()
Patch by Martin T. H. Sandsmark <martin.sandsmark@kde.org>
BUG: 439555
parent
2ba0b201
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/SSHManager/sshmanagerpluginwidget.cpp
View file @
2f1450d8
...
...
@@ -51,7 +51,7 @@ d(std::make_unique<SSHManagerTreeWidget::Private>())
QStringLiteral
(
R"(^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$)"
)
);
const
auto
*
hostnameValidator
=
new
QRegularExpressionValidator
(
hostnameRegex
);
const
auto
*
hostnameValidator
=
new
QRegularExpressionValidator
(
hostnameRegex
,
this
);
ui
->
hostname
->
setValidator
(
hostnameValidator
);
const
auto
*
portValidator
=
new
QIntValidator
(
0
,
9999
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment