Skip to content

Commit

Permalink
attribute: also put selected item on top if sorting descending (fixes #…
Browse files Browse the repository at this point in the history
…12434)

(cherry picked from commit d3c4da0)
  • Loading branch information
jef-n committed Jun 29, 2015
1 parent 99df33f commit f015cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/attributetable/qgsattributetablefiltermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ bool QgsAttributeTableFilterModel::lessThan( const QModelIndex &left, const QMod

if ( leftSelected && !rightSelected )
{
return true;
return sortOrder() == Qt::AscendingOrder;
}
else if ( rightSelected && !leftSelected )
{
return false;
return sortOrder() == Qt::DescendingOrder;
}
}

Expand Down

0 comments on commit f015cd7

Please sign in to comment.