Skip to content

Commit

Permalink
Fix RAT not editable
Browse files Browse the repository at this point in the history
Fix #57795
  • Loading branch information
elpaso committed Jun 18, 2024
1 parent ecec408 commit a0b4035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/raster/qgsrasterattributetablewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void QgsRasterAttributeTableWidget::updateButtons()
{
const bool enableEditingButtons( static_cast<bool>( mAttributeTableBuffer ) && mEditable && mRATView->selectionModel()->currentIndex().isValid() );
mActionToggleEditing->setChecked( mEditable );
mActionToggleEditing->setEnabled( enableEditingButtons );
mActionToggleEditing->setEnabled( mAttributeTableBuffer && mRasterLayer );
mActionAddColumn->setEnabled( mEditable );
mActionRemoveColumn->setEnabled( enableEditingButtons );
mActionAddRow->setEnabled( enableEditingButtons );
Expand Down

0 comments on commit a0b4035

Please sign in to comment.