Skip to content

Commit

Permalink
Use correct stats in attribute table dialog title
Browse files Browse the repository at this point in the history
On behalf of Faunalia, sponsored by ENEL

(cherry-picked from ae5a3d3)
  • Loading branch information
nyalldawson committed Mar 7, 2017
1 parent dc2f6bb commit 8e875ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsattributetabledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void QgsAttributeTableDialog::updateTitle()
QWidget *w = mDock ? qobject_cast<QWidget*>( mDock ) : qobject_cast<QWidget*>( this );
w->setWindowTitle( tr( " %1 :: Features total: %2, filtered: %3, selected: %4%5" )
.arg( mLayer->name() )
.arg( mMainView->featureCount() )
.arg( qMax( static_cast< long >( mMainView->featureCount() ), mLayer->featureCount() ) ) // layer count may be estimated, so use larger of the two
.arg( mMainView->filteredFeatureCount() )
.arg( mLayer->selectedFeatureCount() )
.arg( mRubberBand ? tr( ", spatially limited" ) : "" )
Expand Down
2 changes: 2 additions & 0 deletions src/gui/attributetable/qgsdualview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ void QgsDualView::updateSelectedFeatures()
r.disableFilter();
mMasterModel->setRequest( r );
mMasterModel->loadLayer();
emit filterChanged();
}

void QgsDualView::extentChanged()
Expand All @@ -771,6 +772,7 @@ void QgsDualView::extentChanged()
mMasterModel->setRequest( r );
mMasterModel->loadLayer();
}
emit filterChanged();
}

void QgsDualView::featureFormAttributeChanged()
Expand Down

0 comments on commit 8e875ed

Please sign in to comment.