Skip to content

Commit 14b3ffa

Browse files
RainCTwjwwood
authored andcommitted
Fix disabling of groups (#709)
This was broken with commit 5897285, which reverted the changes in commit c6dacb1, but rather than only removing the change concerning the read-only attribute, commented out the entire check, including the parent_->getDisableChildren() call (which existed prior to commit 5897285).
1 parent b1be6f4 commit 14b3ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rviz/properties/property.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Qt::ItemFlags Property::getViewFlags( int column ) const
279279
{
280280
// if the parent propery is a disabled bool property or
281281
// has its own enabled view flag not set, disable this property as well
282-
Qt::ItemFlags enabled_flag = Qt::ItemIsEnabled;//is_read_only_ || ( parent_ && parent_->getDisableChildren() ) ? Qt::NoItemFlags : Qt::ItemIsEnabled;
282+
Qt::ItemFlags enabled_flag = ( parent_ && parent_->getDisableChildren() ) ? Qt::NoItemFlags : Qt::ItemIsEnabled; // || is_read_only_
283283

284284
if( column == 0 )
285285
{

0 commit comments

Comments
 (0)