Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
attribute: also put selected item on top if sorting descending (fixes #…
…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
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.