Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 19, 2018
1 parent 8c44a6a commit fabce52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Expand Up @@ -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();
}
Expand Down
1 change: 1 addition & 0 deletions src/gui/qgsfeaturelistcombobox.cpp
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit fabce52

Please sign in to comment.