Skip to content
Permalink
Browse files

Fix recent expressions in select by exp dlg

Fixes #33791
  • Loading branch information
elpaso authored and nyalldawson committed Jan 20, 2020
1 parent 46be2cb commit 5bbb1e81c21c2531db8f05b3bfa20e870e702fe4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsexpressionselectiondialog.cpp
@@ -58,9 +58,9 @@ QgsExpressionSelectionDialog::QgsExpressionSelectionDialog( QgsVectorLayer *laye
mExpressionBuilder->setLayer( layer );
mExpressionBuilder->setExpressionText( startText );
mExpressionBuilder->loadFieldNames();
mExpressionBuilder->loadRecent( QStringLiteral( "Selection" ) );

QgsExpressionContext context( QgsExpressionContextUtils::globalProjectLayerScopes( mLayer ) );
mExpressionBuilder->loadRecent( QStringLiteral( "selection" ) );
mExpressionBuilder->setExpressionContext( context );

// by default, zoom to features is hidden, shown only if canvas is set
@@ -224,7 +224,7 @@ void QgsExpressionSelectionDialog::done( int r )

void QgsExpressionSelectionDialog::saveRecent()
{
mExpressionBuilder->saveToRecent( QStringLiteral( "Selection" ) );
mExpressionBuilder->saveToRecent( QStringLiteral( "selection" ) );
}

void QgsExpressionSelectionDialog::showHelp()

0 comments on commit 5bbb1e8

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