Skip to content

Commit

Permalink
Fix dual view form view ghost features
Browse files Browse the repository at this point in the history
Fixes #43477
  • Loading branch information
elpaso authored and nyalldawson committed Jun 9, 2021
1 parent 1bc071c commit dac568f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -546,6 +546,10 @@ void QgsDualView::updateEditSelectionProgress( int progress, int count )
mNextFeatureButton->setEnabled( progress + 1 < count );
mFirstFeatureButton->setEnabled( progress > 0 );
mLastFeatureButton->setEnabled( progress + 1 < count );
if ( mAttributeForm )
{
mAttributeForm->setVisible( count > 0 );
}
}

void QgsDualView::panOrZoomToFeature( const QgsFeatureIds &featureset )
Expand Down
4 changes: 4 additions & 0 deletions src/gui/attributetable/qgsfeaturelistview.cpp
Expand Up @@ -177,6 +177,10 @@ void QgsFeatureListView::editSelectionChanged( const QItemSelection &deselected,
emit currentEditSelectionProgressChanged( mModel->mapFromMaster( indexList.first() ).row(), mModel->rowCount() );
}
}
else if ( mModel->rowCount() == 0 )
{
emit currentEditSelectionProgressChanged( 0, 0 );
}
}

void QgsFeatureListView::selectAll()
Expand Down

0 comments on commit dac568f

Please sign in to comment.