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:
commit
7521cd4785
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user