Commit 2f1450d8 authored by Kurt Hindenburg's avatar 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
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment