Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the preview column in form view when first column is action widget
  • Loading branch information
m-kuhn committed Jun 12, 2016
1 parent 4f803e8 commit 4116f95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/attributetable/qgsattributetablefiltermodel.cpp
Expand Up @@ -482,9 +482,10 @@ QModelIndex QgsAttributeTableFilterModel::mapToSource( const QModelIndex& proxyI

int sourceColumn = mapColumnToSource( proxyIndex.column() );

// For the action column there is no matching column in the source model: invalid
// For the action column there is no matching column in the source model, just return the first one
// so we are still able to query for the feature id, the feature...
if ( sourceColumn == -1 )
return QModelIndex();
sourceColumn = 0;

return QSortFilterProxyModel::mapToSource( index( proxyIndex.row(), sourceColumn, proxyIndex.parent() ) );
}
Expand Down

0 comments on commit 4116f95

Please sign in to comment.