Skip to content
Permalink
Browse files

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 4116f95d6b474f274a1c13597ad687961a7cab4f
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/attributetable/qgsattributetablefiltermodel.cpp
@@ -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() ) );
}

0 comments on commit 4116f95

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