Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 5b5439f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/attributetable/qgsfeaturelistview.cpp
Expand Up @@ -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 );
} );
}
}

Expand Down

0 comments on commit 5b5439f

Please sign in to comment.