diff --git a/src/gui/attributetable/qgsattributetableview.cpp b/src/gui/attributetable/qgsattributetableview.cpp index b84ce98cc33..b51a378a36d 100644 --- a/src/gui/attributetable/qgsattributetableview.cpp +++ b/src/gui/attributetable/qgsattributetableview.cpp @@ -57,6 +57,8 @@ QgsAttributeTableView::QgsAttributeTableView( QWidget *parent ) mTableDelegate = new QgsAttributeTableDelegate( this ); setItemDelegate( mTableDelegate ); + setEditTriggers( QAbstractItemView::AllEditTriggers ); + setSelectionBehavior( QAbstractItemView::SelectRows ); setSelectionMode( QAbstractItemView::ExtendedSelection ); setSortingEnabled( true ); // At this point no data is in the model yet, so actually nothing is sorted.