mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Program crashes after switching the display view of contacts, from compact to normal view
This commit is contained in:
parent
e622b3fd48
commit
164d6a124e
|
@ -54,9 +54,11 @@ bool GenericChatroomWidget::eventFilter(QObject *, QEvent *)
|
|||
|
||||
void GenericChatroomWidget::compactChange(bool _compact)
|
||||
{
|
||||
if (!isCompact())
|
||||
delete textLayout; // has to be first, deleted by layout
|
||||
|
||||
setCompact(_compact);
|
||||
|
||||
delete textLayout; // has to be first, deleted by layout
|
||||
delete mainLayout;
|
||||
|
||||
mainLayout = new QHBoxLayout;
|
||||
|
|
Loading…
Reference in New Issue
Block a user