Qt: Fix typo in proto_tree_model

Don't take the address of a pointer in the foreach function.
Fixes the main status bar not updating properly because of
inability to find a field.
This commit is contained in:
John Thacker 2022-11-14 11:35:59 -05:00
parent ab27562dbc
commit 6e041d9afa
1 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ bool ProtoTreeModel::foreachFindHfid(ProtoNode *node, gpointer find_hfid_ptr)
return true;
}
for (int i = 0; i < node->childrenCount(); i++) {
if (foreachFindHfid(node->child(i), &find_hfid)) {
if (foreachFindHfid(node->child(i), find_hfid)) {
return true;
}
}
@ -229,7 +229,7 @@ bool ProtoTreeModel::foreachFindField(ProtoNode *node, gpointer find_finfo_ptr)
return true;
}
for (int i = 0; i < node->childrenCount(); i++) {
if (foreachFindField(node->child(i), &find_finfo)) {
if (foreachFindField(node->child(i), find_finfo)) {
return true;
}
}