Skip to content
Permalink
Browse files
Comment line in default custom expression function. It should remain …
…commented when a user removes the ''' to uncomment the whole function
  • Loading branch information
gacarrillor committed Apr 9, 2021
1 parent b9ee50b commit 63c9f17f6bc9602206856d025204553e5a42445f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsexpressionbuilderwidget.cpp
@@ -399,8 +399,8 @@ void QgsExpressionBuilderWidget::updateFunctionFileList( const QString &path )
{
// Create default sample entry.
newFunctionFile( "default" );
txtPython->setText( QStringLiteral( "'''\n#Sample custom function file\n "
"(uncomment to use and customize or Add button to create a new file) \n%1 \n '''" ).arg( txtPython->text() ) );
txtPython->setText( QStringLiteral( "'''\n#Sample custom function file\n"
"#(uncomment to use and customize or Add button to create a new file) \n%1 \n '''" ).arg( txtPython->text() ) );
saveFunctionFile( "default" );
}
}

0 comments on commit 63c9f17

Please sign in to comment.