Skip to content

Commit

Permalink
fix: Fix uninitialised read in contact circle widget.
Browse files Browse the repository at this point in the history
`isCompact` reads from `this->compact`, which isn't ready yet.
  • Loading branch information
iphydf committed Dec 27, 2024
1 parent 5d10209 commit 0ddcf08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/circlewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ QHash<int, CircleWidget*> CircleWidget::circleList;
CircleWidget::CircleWidget(const Core& core_, FriendListWidget* parent, int id_, Settings& settings_,
Style& style_, IMessageBoxManager& messageBoxManager_,
FriendList& friendList_, ConferenceList& conferenceList_, Profile& profile_)
: CategoryWidget(isCompact(), settings_, style_, parent)
: CategoryWidget(settings_.getCompactLayout(), settings_, style_, parent)
, id(id_)
, core{core_}
, settings{settings_}
Expand Down

0 comments on commit 0ddcf08

Please sign in to comment.