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:
parent
ab27562dbc
commit
6e041d9afa
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue