mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
profileform: fixed leaky toxId field
This commit is contained in:
parent
8776682d44
commit
2982bab991
|
@ -77,7 +77,7 @@ ProfileForm::ProfileForm(QWidget *parent) :
|
||||||
toxId->setToolTip(bodyUI->toxId->toolTip());
|
toxId->setToolTip(bodyUI->toxId->toolTip());
|
||||||
|
|
||||||
QVBoxLayout *toxIdGroup = qobject_cast<QVBoxLayout*>(bodyUI->toxGroup->layout());
|
QVBoxLayout *toxIdGroup = qobject_cast<QVBoxLayout*>(bodyUI->toxGroup->layout());
|
||||||
toxIdGroup->replaceWidget(bodyUI->toxId, toxId);
|
delete toxIdGroup->replaceWidget(bodyUI->toxId, toxId); // Original toxId is in heap, delete it
|
||||||
bodyUI->toxId->hide();
|
bodyUI->toxId->hide();
|
||||||
|
|
||||||
bodyUI->qrLabel->setWordWrap(true);
|
bodyUI->qrLabel->setWordWrap(true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user