Skip to content

Commit

Permalink
Fix recent expressions in select by exp dlg
Browse files Browse the repository at this point in the history
Fixes #33791
  • Loading branch information
elpaso authored and nyalldawson committed Jan 21, 2020
1 parent bdda5d2 commit 1ebca43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsexpressionselectiondialog.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -222,7 +223,7 @@ void QgsExpressionSelectionDialog::done( int r )

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

void QgsExpressionSelectionDialog::showHelp()
Expand Down

0 comments on commit 1ebca43

Please sign in to comment.