Skip to content
Permalink
Browse files

emit currentIndexChanged onDataChanged

Because this effects that the data related to the combobox (emedded forms) got updated. they update because of an index change, but needed to be updated even when the index does not change (but the data). This goes over the same canal here.

(cherry-picked from 56fe370)
  • Loading branch information
signedav committed Jul 16, 2018
1 parent 8c44a6a commit fabce526b7a0d7ea69509b675bfd4b83f93a6556
Showing with 1 addition and 2 deletions.
  1. +0 −2 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
  2. +1 −0 src/gui/qgsfeaturelistcombobox.cpp
@@ -556,8 +556,6 @@ void QgsRelationReferenceWidget::init()
// Only connect after iterating, to have only one iterator on the referenced table at once
connect( mComboBox, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsRelationReferenceWidget::comboReferenceChanged );

mReferencedLayer->getFeatures( mComboBox->currentFeatureRequest() ).nextFeature( mFeature );
highlightFeature( mFeature );
updateAttributeEditorFrame( mFeature );
QApplication::restoreOverrideCursor();
}
@@ -160,6 +160,7 @@ void QgsFeatureListComboBox::onDataChanged( const QModelIndex &topLeft, const QM
QModelIndex modelIndex = mModel->index( currentIndex, 0, QModelIndex() );
mLineEdit->setText( mModel->data( modelIndex, QgsFeatureFilterModel::ValueRole ).toString() );
}
emit currentIndexChanged( currentIndex );
}
}

0 comments on commit fabce52

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