Skip to content
Permalink
Browse files

Merge pull request #6927 from m-kuhn/delayededitSelectionUpdate

Delayed update of edit selection
  • Loading branch information
m-kuhn committed May 4, 2018
2 parents fd5e0a7 + a3ea2ad commit 5b5439f55b79479dca75c4a8187213374b4eb22c
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/attributetable/qgsfeaturelistview.cpp
@@ -342,7 +342,10 @@ void QgsFeatureListView::ensureEditSelection()
|| mModel->mapFromMaster( selectedIndexes.first() ).row() == -1 )
&& mModel->rowCount() )
{
mCurrentEditSelectionModel->select( mModel->mapToMaster( mModel->index( 0, 0 ) ), QItemSelectionModel::Select );
QTimer::singleShot( 0, this, [ this ]()
{
setEditSelection( mModel->mapToMaster( mModel->index( 0, 0 ) ), QItemSelectionModel::ClearAndSelect );
} );
}
}

0 comments on commit 5b5439f

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