Skip to content
Permalink
Browse files

Use correct stats in attribute table dialog title

On behalf of Faunalia, sponsored by ENEL

(cherry-picked from ae5a3d3)
  • Loading branch information
nyalldawson committed Mar 7, 2017
1 parent dc2f6bb commit 8e875ed9f5c64a379719f347d3256880aa286db9
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/app/qgsattributetabledialog.cpp
  2. +2 −0 src/gui/attributetable/qgsdualview.cpp
@@ -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" ) : "" )
@@ -759,6 +759,7 @@ void QgsDualView::updateSelectedFeatures()
r.disableFilter();
mMasterModel->setRequest( r );
mMasterModel->loadLayer();
emit filterChanged();
}

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

void QgsDualView::featureFormAttributeChanged()

0 comments on commit 8e875ed

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