mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-02 18:44:53 -05:00
fixed cmpilation error, where impossible case is not handled
This commit is contained in:
parent
63d879b3d9
commit
11bc7a886a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user