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 bdda5d2 commit 1ebca43b3304bc579106fe5d3cbbe6c6408b48b8
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsexpressionselectiondialog.cpp
@@ -59,6 +59,7 @@ QgsExpressionSelectionDialog::QgsExpressionSelectionDialog( QgsVectorLayer *laye
mExpressionBuilder->setExpressionText( startText );

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
@@ -222,7 +223,7 @@ void QgsExpressionSelectionDialog::done( int r )

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

void QgsExpressionSelectionDialog::showHelp()

0 comments on commit 1ebca43

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