Skip to content
Permalink
Browse files

correctly set current index for expression parent combobox

  • Loading branch information
alexbruy committed Mar 19, 2020
1 parent 77ae903 commit a749f5b404b9a4da7a5f8ef06b206d3c4fb49728
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
@@ -1616,7 +1616,7 @@ QgsProcessingExpressionParameterDefinitionWidget::QgsProcessingExpressionParamet
}
}

if ( mParentLayerComboBox->count() == 0 && !initialParent.isEmpty() )
if ( mParentLayerComboBox->count() == 1 && !initialParent.isEmpty() )
{
// if no parent candidates found, we just add the existing one as a placeholder
mParentLayerComboBox->addItem( initialParent, initialParent );

0 comments on commit a749f5b

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