Skip to content
Permalink
Browse files

Fix for function editor:

when running the script the entries "Fields and values" and "Recent"
into the functions list of the expression builder disappear.
(cherry-picked from 89477af)
  • Loading branch information
slarosa committed May 27, 2015
1 parent 0919fe7 commit ba36bb67b702b4b2a601e725b3e75fbd55e1af0a
Showing with 4 additions and 0 deletions.
  1. +3 −0 src/gui/qgsexpressionbuilderwidget.cpp
  2. +1 −0 src/gui/qgsexpressionbuilderwidget.h
@@ -132,6 +132,8 @@ void QgsExpressionBuilderWidget::runPythonCode( QString code )
QgsPythonRunner::run( pythontext );
}
updateFunctionTree();
loadFieldNames();
loadRecent( mRecentKey );
}

void QgsExpressionBuilderWidget::saveFunctionFile( QString fileName )
@@ -347,6 +349,7 @@ void QgsExpressionBuilderWidget::saveToRecent( QString key )

void QgsExpressionBuilderWidget::loadRecent( QString key )
{
mRecentKey = key;
QString name = tr( "Recent (%1)" ).arg( key );
if ( mExpressionGroups.contains( name ) )
{
@@ -218,6 +218,7 @@ class GUI_EXPORT QgsExpressionBuilderWidget : public QWidget, private Ui::QgsExp
QgsExpressionHighlighter* highlighter;
bool mExpressionValid;
QgsDistanceArea mDa;
QString mRecentKey;

};

0 comments on commit ba36bb6

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