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.
  • Loading branch information
slarosa committed May 28, 2015
1 parent 1cbbf59 commit 89477af1b9525b536dac817364c0dc9c876a7296
Showing with 4 additions and 0 deletions.
  1. +3 −0 src/gui/qgsexpressionbuilderwidget.cpp
  2. +1 −0 src/gui/qgsexpressionbuilderwidget.h
@@ -131,6 +131,8 @@ void QgsExpressionBuilderWidget::runPythonCode( QString code )
QgsPythonRunner::run( pythontext );
}
updateFunctionTree();
loadFieldNames();
loadRecent( mRecentKey );
}

void QgsExpressionBuilderWidget::saveFunctionFile( QString fileName )
@@ -346,6 +348,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 89477af

Please sign in to comment.