1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge remote-tracking branch 'PKEv/fix__switching_contacts_view'

This commit is contained in:
agilob 2015-10-04 10:21:56 +01:00
commit 7521cd4785
No known key found for this signature in database
GPG Key ID: 296F0B764741106C

View File

@ -54,9 +54,11 @@ bool GenericChatroomWidget::eventFilter(QObject *, QEvent *)
void GenericChatroomWidget::compactChange(bool _compact) void GenericChatroomWidget::compactChange(bool _compact)
{ {
if (!isCompact())
delete textLayout; // has to be first, deleted by layout
setCompact(_compact); setCompact(_compact);
delete textLayout; // has to be first, deleted by layout
delete mainLayout; delete mainLayout;
mainLayout = new QHBoxLayout; mainLayout = new QHBoxLayout;