Skip to content

Commit f2df776

Browse files
Remove redundant check (#1506) (#1512)
(cherry picked from commit 21891c0) Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
1 parent 7ef66a8 commit f2df776

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

rviz_common/src/rviz_common/properties/property_tree_model.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ QModelIndex PropertyTreeModel::parentIndex(const Property * child) const
114114
return QModelIndex();
115115
}
116116
Property * parent = child->getParent();
117-
if (parent == root_property_ || !parent) {
118-
return QModelIndex();
119-
}
120117
return indexOf(parent);
121118
}
122119

0 commit comments

Comments
 (0)