Skip to content

Commit

Permalink
[attribute table] Don't show sort indicator if sort expression is not…
Browse files Browse the repository at this point in the history
… a field
  • Loading branch information
agiudiceandrea authored Jun 4, 2024
1 parent 7c69f92 commit c98c770
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/attributetable/qgsattributetableview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ void QgsAttributeTableView::setAttributeTableConfig( const QgsAttributeTableConf
horizontalHeader()->setSortIndicatorShown( true );
horizontalHeader()->setSortIndicator( columns.value( refCols.constFirst() ), config.sortOrder() );
}
else
{
horizontalHeader()->setSortIndicatorShown( false );
}
}
}
mSortExpression = config.sortExpression();
Expand Down

0 comments on commit c98c770

Please sign in to comment.