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.
  • Loading branch information
signedav committed Jul 16, 2018
1 parent 9ff71a0 commit 56fe370e851f3fdeb5515f6dc2f8cf794ed47155
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 56fe370

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