Skip to content

Commit

Permalink
Fix issue whereby toggling the 'Move selected to top' action in the a…
Browse files Browse the repository at this point in the history
…ttribute table dialog

breaks the current sort column and sort order due to the column and order being
hard-coded to 0 and Qt::AscendingOrder respectively.
  • Loading branch information
benwirf authored and nyalldawson committed Sep 30, 2024
1 parent dd4f71c commit 671e976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsattributetablefiltermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void QgsAttributeTableFilterModel::setSelectedOnTop( bool selectedOnTop )
if ( order != Qt::AscendingOrder && order != Qt::DescendingOrder )
order = Qt::AscendingOrder;

sort( 0, Qt::AscendingOrder );
sort( column, order );
invalidate();
}
}
Expand Down

0 comments on commit 671e976

Please sign in to comment.