mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
genericchatroomwidget: fixed memory leak if compact view enabled
This commit is contained in:
parent
e1509a9f03
commit
f288be72d9
|
@ -72,6 +72,7 @@ void GenericChatroomWidget::compactChange(bool _compact)
|
|||
// avatar
|
||||
if (isCompact())
|
||||
{
|
||||
delete textLayout; // Not needed
|
||||
setFixedHeight(25);
|
||||
avatar->setSize(QSize(20,20));
|
||||
mainLayout->addSpacing(18);
|
||||
|
|
Loading…
Reference in New Issue
Block a user