Skip to content
Permalink
Browse files

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

  • Loading branch information
jef-n committed Jun 11, 2015
1 parent ec0e971 commit d3c4da0b66f70efdf0b2fcff4075395686f72203
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 d3c4da0

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