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
  • Loading branch information
nyalldawson committed Mar 5, 2017
1 parent 5342a12 commit ae5a3d3
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 @@ -346,7 +346,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() )
);
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 @@ -724,6 +724,7 @@ void QgsDualView::updateSelectedFeatures()
r.disableFilter();
mMasterModel->setRequest( r );
mMasterModel->loadLayer();
emit filterChanged();
}

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

void QgsDualView::featureFormAttributeChanged()
Expand Down

0 comments on commit ae5a3d3

Please sign in to comment.