Skip to content

Commit

Permalink
Fix feature edit selection in filtered feature list
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 16, 2013
1 parent c000ded commit d3a7e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/attributetable/qgsfeaturelistview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void QgsFeatureListView::mousePressEvent( QMouseEvent *event )
if ( QgsFeatureListViewDelegate::EditElement == mItemDelegate->positionToElement( event->pos() ) )
{
mEditSelectionDrag = true;
mCurrentEditSelectionModel->select( index, QItemSelectionModel::ClearAndSelect );
mCurrentEditSelectionModel->select( mModel->mapToMaster( index ), QItemSelectionModel::ClearAndSelect );
}
else
{
Expand Down Expand Up @@ -181,7 +181,7 @@ void QgsFeatureListView::mouseMoveEvent( QMouseEvent *event )

if ( mEditSelectionDrag )
{
mCurrentEditSelectionModel->select( index, QItemSelectionModel::ClearAndSelect );
mCurrentEditSelectionModel->select( mModel->mapToMaster( index ), QItemSelectionModel::ClearAndSelect );
}
else
{
Expand Down

0 comments on commit d3a7e04

Please sign in to comment.