Skip to content
Permalink
Browse files

Use correct stats in attribute table dialog title

On behalf of Faunalia, sponsored by ENEL
  • Loading branch information
nyalldawson committed Mar 5, 2017
1 parent 5342a12 commit ae5a3d3113cf4aea13fee7da232e0e7163c4a917
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/app/qgsattributetabledialog.cpp
  2. +2 −0 src/gui/attributetable/qgsdualview.cpp
@@ -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() )
);
@@ -724,6 +724,7 @@ void QgsDualView::updateSelectedFeatures()
r.disableFilter();
mMasterModel->setRequest( r );
mMasterModel->loadLayer();
emit filterChanged();
}

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

void QgsDualView::featureFormAttributeChanged()

0 comments on commit ae5a3d3

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