From b63544e85648b3a32faad4a72073dcac69f6ce8c Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 4 Dec 2018 22:14:54 +0100 Subject: [PATCH] suppressed 2 uninitialized memory read in ForumModel --- retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp b/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp index e5c49caa3..c16a8752b 100644 --- a/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp +++ b/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp @@ -47,6 +47,7 @@ RsGxsForumModel::RsGxsForumModel(QObject *parent) mUseChildTS=false; mFilteringEnabled=false; + mTreeMode = TREE_MODE_TREE; } void RsGxsForumModel::preMods() @@ -489,7 +490,10 @@ void RsGxsForumModel::setFilter(int column,const QStringList& strings,uint32_t& mFilteringEnabled = true; } else + { + count=0; mFilteringEnabled = false; + } postMods(); }