mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix the preview column in form view when first column is action widget
This commit is contained in:
parent
4f803e8658
commit
4116f95d6b
@ -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() ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user