Skip to content

Commit

Permalink
Fix remove file in function editor
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and github-actions[bot] committed Dec 13, 2022
1 parent 6fe856c commit 00931e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -455,7 +455,7 @@ void QgsExpressionBuilderWidget::btnRemoveFile_pressed()

if ( cmbFileNames->count() > 0 )
{
cmbFileNames->setCurrentRow( currentRow > 0 ? currentRow - 1 : 0 );
whileBlocking( cmbFileNames )->setCurrentRow( currentRow > 0 ? currentRow - 1 : 0 );
loadCodeFromFile( mFunctionsPath + QDir::separator() + cmbFileNames->currentItem()->text() );
}
else
Expand Down

0 comments on commit 00931e3

Please sign in to comment.