Skip to content
Permalink
Browse files

attribute: also put selected item on top if sorting descending (fixes #…

…12434)

(cherry picked from commit d3c4da0)
  • Loading branch information
jef-n committed Jun 11, 2015
1 parent 99df33f commit f015cd7befcfeb75598fd88900a91a3a3fdecaae
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/attributetable/qgsattributetablefiltermodel.cpp
@@ -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;
}
}

0 comments on commit f015cd7

Please sign in to comment.
You can’t perform that action at this time.