Browse Source

Program crashes after switching the display view of contacts, from compact to normal view

pull/2335/head
PKEv 10 years ago
parent
commit
164d6a124e
  1. 4
      src/widget/genericchatroomwidget.cpp

4
src/widget/genericchatroomwidget.cpp

@ -54,9 +54,11 @@ bool GenericChatroomWidget::eventFilter(QObject *, QEvent *) @@ -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…
Cancel
Save