Skip to content
Permalink
Browse files

Merge pull request #34655 from qgis-bot/backport-34501-to-release-3_10

[Backport release-3_10] fix browsing counter not reset in feature list (attribute table)
  • Loading branch information
rouault committed Mar 11, 2020
2 parents dddb30f + 4276c66 commit f92f59ce6322d2e5cac4881495c9f0ef1e1d5e1b
Showing with 6 additions and 0 deletions.
  1. +1 −0 src/gui/attributetable/qgsdualview.cpp
  2. +5 −0 src/gui/attributetable/qgsfeaturelistview.cpp
@@ -301,6 +301,7 @@ void QgsDualView::setFilterMode( QgsAttributeTableFilterModel::FilterMode filter
mMasterModel->loadLayer();
}


// disable the browsing auto pan/scale if the list only shows visible items
switch ( filterMode )
{
@@ -365,7 +365,12 @@ void QgsFeatureListView::selectRow( const QModelIndex &index, bool anchor )
void QgsFeatureListView::ensureEditSelection( bool inSelection )
{
if ( !mModel->rowCount() )
{
// not sure this is the best place to emit from
// this will allow setting the counter to zero in the browsing panel
emit currentEditSelectionProgressChanged( 0, 0 );
return;
}

const QModelIndexList selectedIndexes = mCurrentEditSelectionModel->selectedIndexes();

0 comments on commit f92f59c

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