1
0
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:
Dmytro Shynkevych 2015-10-04 18:18:34 -04:00
parent 8776682d44
commit 2982bab991

View File

@ -77,7 +77,7 @@ ProfileForm::ProfileForm(QWidget *parent) :
toxId->setToolTip(bodyUI->toxId->toolTip());
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->qrLabel->setWordWrap(true);