diff --git a/src/widget/form/profileform.cpp b/src/widget/form/profileform.cpp index 176fda442..7f055ded2 100644 --- a/src/widget/form/profileform.cpp +++ b/src/widget/form/profileform.cpp @@ -93,7 +93,7 @@ ProfileForm::ProfileForm(QWidget *parent) : bodyUI->qrLabel->setWordWrap(true); QRegExp re("[^@ ]+"); - QRegExpValidator* validator = new QRegExpValidator(re); + QRegExpValidator* validator = new QRegExpValidator(re, this); bodyUI->toxmeUsername->setValidator(validator); profilePicture = new MaskablePixmapWidget(this, QSize(64, 64), ":/img/avatar_mask.svg");