Commit 16c10074 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix mem leak found by ASAN

parent 33f5b793
Pipeline #25085 passed with stage
in 12 minutes and 41 seconds
...@@ -77,8 +77,8 @@ public: ...@@ -77,8 +77,8 @@ public:
auto emailLay = new QHBoxLayout; auto emailLay = new QHBoxLayout;
auto emailLbl = new QLabel(i18n("EMail") + QLatin1Char(':')); auto emailLbl = new QLabel(i18n("EMail") + QLatin1Char(':'));
mEmailEdit = new QLineEdit; mEmailEdit = new QLineEdit(q);
mEmailEdit->setValidator(Validation::email()); mEmailEdit->setValidator(Validation::email(mEmailEdit));
connect(mEmailEdit, &QLineEdit::textChanged, q, [this] () { connect(mEmailEdit, &QLineEdit::textChanged, q, [this] () {
mOkButton->setEnabled(!mEmailEdit->text().isEmpty() && mEmailEdit->hasAcceptableInput()); mOkButton->setEnabled(!mEmailEdit->text().isEmpty() && mEmailEdit->hasAcceptableInput());
......
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