Skip to content

Commit

Permalink
also handle UI when manually applying filter
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 12, 2014
1 parent cecb3d1 commit ffd3f88
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/app/qgsattributetabledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
}
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit ffd3f88

Please sign in to comment.