Skip to content
Permalink
Browse files

also handle UI when manually applying filter

  • Loading branch information
3nids committed Aug 12, 2014
1 parent cecb3d1 commit ffd3f882f7cb2e7d0d46bc19c216644bb5b9893a
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/app/qgsattributetabledialog.cpp
@@ -397,13 +397,6 @@ void QgsAttributeTableDialog::filterExpressionBuilder()

if ( dlg.exec() == QDialog::Accepted )
{
mFilterQuery->setText( dlg.expressionText() );
mFilterButton->setDefaultAction( mActionAdvancedFilter );
mFilterButton->setPopupMode( QToolButton::MenuButtonPopup );
mCbxCaseSensitive->setVisible( false );
mFilterQuery->setVisible( true );
mApplyFilterButton->setVisible( true );
mMainView->setFilterMode( QgsAttributeTableFilterModel::ShowFilteredList );
setFilterExpression( dlg.expressionText() );
}
}
@@ -706,6 +699,14 @@ void QgsAttributeTableDialog::filterQueryAccepted()

void QgsAttributeTableDialog::setFilterExpression( QString filterString )
{
mFilterQuery->setText( filterString );
mFilterButton->setDefaultAction( mActionAdvancedFilter );
mFilterButton->setPopupMode( QToolButton::MenuButtonPopup );
mCbxCaseSensitive->setVisible( false );
mFilterQuery->setVisible( true );
mApplyFilterButton->setVisible( true );
mMainView->setFilterMode( QgsAttributeTableFilterModel::ShowFilteredList );

QgsFeatureIds filteredFeatures;
QgsDistanceArea myDa;

0 comments on commit ffd3f88

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