From fb61186daa2d8c68cb069644bcb9e63c2602e625 Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 19 Feb 2021 11:11:39 +0100 Subject: [PATCH] Fix Uninitialised value in FriendListModel --- retroshare-gui/src/gui/common/FriendListModel.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/common/FriendListModel.cpp b/retroshare-gui/src/gui/common/FriendListModel.cpp index 653c3485b..700564e5a 100644 --- a/retroshare-gui/src/gui/common/FriendListModel.cpp +++ b/retroshare-gui/src/gui/common/FriendListModel.cpp @@ -60,11 +60,10 @@ static const uint32_t NODE_DETAILS_UPDATE_DELAY = 5; // update each node every 5 RsFriendListModel::RsFriendListModel(QObject *parent) : QAbstractItemModel(parent) + , mDisplayGroups(true), mDisplayStatusString(true) + , mLastInternalDataUpdate(0), mLastNodeUpdate(0) { - mDisplayGroups = true; - mFilterStrings.clear(); - mLastNodeUpdate=0; - mLastInternalDataUpdate=0; + mFilterStrings.clear(); } RsFriendListModel::EntryIndex::EntryIndex()