Skip to content

Commit

Permalink
added check while search for included files
Browse files Browse the repository at this point in the history
  • Loading branch information
atiderko committed Aug 14, 2023
1 parent ff20d0a commit ee9901e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fkie_node_manager/src/fkie_node_manager/editor/graph_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,14 @@ def get_included_files(self, from_file, inc_string=''):
item = self.graphTreeView.model().itemFromIndex(index)
for row_idx in range(item.rowCount()):
inc_item = item.child(row_idx)
if not inc_string or inc_item.data(self.DATA_RAW) in inc_string:
append = not inc_string
if not append:
raw_data = inc_item.data(self.DATA_RAW)
if raw_data:
append = raw_data in inc_string
else:
rospy.logwarn(f"no RAW data found in {inc_item}")
if append:
result.append((inc_item.data(self.DATA_INC_FILE), inc_item.data(self.DATA_RAW), inc_item.data(self.DATA_LINE), inc_item.data(self.DATA_FILE_EXISTS)))
return result

Expand Down

0 comments on commit ee9901e

Please sign in to comment.