Skip to content

Commit d3a7e04

Browse files
committedApr 16, 2013
Fix feature edit selection in filtered feature list
1 parent c000ded commit d3a7e04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/attributetable/qgsfeaturelistview.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void QgsFeatureListView::mousePressEvent( QMouseEvent *event )
105105
if ( QgsFeatureListViewDelegate::EditElement == mItemDelegate->positionToElement( event->pos() ) )
106106
{
107107
mEditSelectionDrag = true;
108-
mCurrentEditSelectionModel->select( index, QItemSelectionModel::ClearAndSelect );
108+
mCurrentEditSelectionModel->select( mModel->mapToMaster( index ), QItemSelectionModel::ClearAndSelect );
109109
}
110110
else
111111
{
@@ -181,7 +181,7 @@ void QgsFeatureListView::mouseMoveEvent( QMouseEvent *event )
181181

182182
if ( mEditSelectionDrag )
183183
{
184-
mCurrentEditSelectionModel->select( index, QItemSelectionModel::ClearAndSelect );
184+
mCurrentEditSelectionModel->select( mModel->mapToMaster( index ), QItemSelectionModel::ClearAndSelect );
185185
}
186186
else
187187
{

0 commit comments

Comments
 (0)
Please sign in to comment.