From 11bc7a886a54f450353ba0579e9280033f67b15f Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 21 Dec 2019 11:14:11 +0100 Subject: [PATCH] fixed cmpilation error, where impossible case is not handled --- retroshare-gui/src/gui/common/FriendListModel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/common/FriendListModel.cpp b/retroshare-gui/src/gui/common/FriendListModel.cpp index d7d625121..3da609aa4 100644 --- a/retroshare-gui/src/gui/common/FriendListModel.cpp +++ b/retroshare-gui/src/gui/common/FriendListModel.cpp @@ -178,12 +178,13 @@ int RsFriendListModel::rowCount(const QModelIndex& parent) const return mGroups[index.group_index].child_profile_indices.size(); if(index.type == ENTRY_TYPE_PROFILE) + { if(index.group_index < UNDEFINED_GROUP_INDEX_VALUE) return mProfiles[mGroups[index.group_index].child_profile_indices[index.profile_index]].child_node_indices.size(); else return mProfiles[index.profile_index].child_node_indices.size(); - - if(index.type == ENTRY_TYPE_NODE) + } + else //if(index.type == ENTRY_TYPE_NODE) return 0; }