From b98801f42f55547fce227aaad7dabd71b8895338 Mon Sep 17 00:00:00 2001 From: bodwok Date: Fri, 19 Feb 2021 19:13:51 +0300 Subject: [PATCH] fix(ui): add group widgets on start with "Activity" mode --- src/widget/friendlistwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widget/friendlistwidget.cpp b/src/widget/friendlistwidget.cpp index 8cd927499..71617badd 100644 --- a/src/widget/friendlistwidget.cpp +++ b/src/widget/friendlistwidget.cpp @@ -115,8 +115,10 @@ FriendListWidget::FriendListWidget(const Core &_core, Widget* parent, bool group mode = Settings::getInstance().getFriendSortingMode(); sortByMode(mode); + if (mode != SortingMode::Name) { + listLayout->insertLayout(0, groupLayout.getLayout()); + } - onGroupchatPositionChanged(groupsOnTop); dayTimer = new QTimer(this); dayTimer->setTimerType(Qt::VeryCoarseTimer); connect(dayTimer, &QTimer::timeout, this, &FriendListWidget::dayTimeout);