Browse Source

profileform: fixed leaky toxId field

pull/2343/head
Dmytro Shynkevych 10 years ago
parent
commit
2982bab991
  1. 2
      src/widget/form/profileform.cpp

2
src/widget/form/profileform.cpp

@ -77,7 +77,7 @@ ProfileForm::ProfileForm(QWidget *parent) : @@ -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);

Loading…
Cancel
Save