Skip to content
Permalink
Browse files

Fix sorting in attribute table

Regression introduced with 3ec3dae (2.14.3) where
QgsAttributeTableModel::data(index, SortRole) returned an empty variant.

Fixes #14927
  • Loading branch information
rouault committed Jun 13, 2016
1 parent 69e3c6f commit 671850f66a580e5849c87a11d448b98dd7f338da
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/attributetable/qgsattributetablemodel.cpp
@@ -593,6 +593,11 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons
val = mFeat.attribute( fieldId );
}

if ( role == SortRole )
{
return val;
}

switch ( role )
{
case Qt::DisplayRole:

0 comments on commit 671850f

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