Skip to content

Commit 5b5439f

Browse files
authoredMay 4, 2018
Merge pull request #6927 from m-kuhn/delayededitSelectionUpdate
Delayed update of edit selection
2 parents fd5e0a7 + a3ea2ad commit 5b5439f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/gui/attributetable/qgsfeaturelistview.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ void QgsFeatureListView::ensureEditSelection()
342342
|| mModel->mapFromMaster( selectedIndexes.first() ).row() == -1 )
343343
&& mModel->rowCount() )
344344
{
345-
mCurrentEditSelectionModel->select( mModel->mapToMaster( mModel->index( 0, 0 ) ), QItemSelectionModel::Select );
345+
QTimer::singleShot( 0, this, [ this ]()
346+
{
347+
setEditSelection( mModel->mapToMaster( mModel->index( 0, 0 ) ), QItemSelectionModel::ClearAndSelect );
348+
} );
346349
}
347350
}
348351

0 commit comments

Comments
 (0)
Please sign in to comment.