Skip to content
Permalink
Browse files

Fixes auto select foreign key when filters are updated

  • Loading branch information
pblottiere committed Dec 15, 2017
1 parent f4b007e commit 0210d3823f0bb10b4e771b0cbd441b537e1b083c
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -941,6 +941,18 @@ void QgsRelationReferenceWidget::filterChanged()
}

mFilterModel->setFilteredFeatures( featureIds );

if ( mChainFilters && mComboBox->count() > 0 )
{
if ( scb->currentIndex() == 0 )
{
mComboBox->setCurrentIndex( 0 );
}
else if ( mComboBox->count() > 1 )
{
mComboBox->setCurrentIndex( 1 );
}
}
}

void QgsRelationReferenceWidget::addEntry()

0 comments on commit 0210d38

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