1
0
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:
PKEv 2015-10-03 22:30:08 +03:00
parent e622b3fd48
commit 164d6a124e

View File

@ -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;