mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
Merge pull request #32176 from 3nids/clear_warning
prevent clearing selection in QgsFeatureListView
This commit is contained in:
commit
3daf24c716
@ -135,7 +135,9 @@ void QgsFeatureListView::mousePressEvent( QMouseEvent *event )
|
||||
|
||||
if ( QgsFeatureListViewDelegate::EditElement == mItemDelegate->positionToElement( event->pos() ) )
|
||||
{
|
||||
|
||||
mEditSelectionDrag = true;
|
||||
if ( index.isValid() )
|
||||
setEditSelection( mModel->mapToMaster( index ), QItemSelectionModel::ClearAndSelect );
|
||||
}
|
||||
else
|
||||
@ -233,6 +235,7 @@ void QgsFeatureListView::mouseMoveEvent( QMouseEvent *event )
|
||||
|
||||
if ( mEditSelectionDrag )
|
||||
{
|
||||
if ( index.isValid() )
|
||||
setEditSelection( mModel->mapToMaster( index ), QItemSelectionModel::ClearAndSelect );
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user