Skip to content
Permalink
Browse files

Maintain order of recent expressions (fix #13461)

  • Loading branch information
nyalldawson committed Oct 5, 2015
1 parent 481bd95 commit 74110bbbc7eef1d3cce3b04488a05caa473cb97d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgsexpressionbuilderwidget.cpp
@@ -416,9 +416,11 @@ void QgsExpressionBuilderWidget::loadRecent( QString key )
QSettings settings;
QString location = QString( "/expressions/recent/%1" ).arg( key );
QStringList expressions = settings.value( location ).toStringList();
int i = 0;
Q_FOREACH ( const QString& expression, expressions )
{
this->registerItem( name, expression, expression, expression );
this->registerItem( name, expression, expression, expression, QgsExpressionItem::ExpressionNode, false, i );
i++;
}
}

0 comments on commit 74110bb

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