We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent c09c96b commit d839840Copy full SHA for d839840
src/gui/qgsexpressionbuilderwidget.cpp
@@ -234,11 +234,13 @@ void QgsExpressionBuilderWidget::newFunctionFile( const QString &fileName )
234
if ( !items.isEmpty() )
235
return;
236
237
+ QListWidgetItem *item = new QListWidgetItem( QgsApplication::getThemeIcon( QStringLiteral( "console/iconTabEditorConsole.png" ) ), fileName );
238
+ cmbFileNames->insertItem( 0, item );
239
+ cmbFileNames->setCurrentRow( 0 );
240
+
241
QString templatetxt;
242
QgsPythonRunner::eval( QStringLiteral( "qgis.user.expressions.template" ), templatetxt );
243
txtPython->setText( templatetxt );
- cmbFileNames->insertItem( 0, fileName );
- cmbFileNames->setCurrentRow( 0 );
244
saveFunctionFile( fileName );
245
}
246
0 commit comments