Skip to content

Commit fabce52

Browse files
committedJul 19, 2018
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)
1 parent 8c44a6a commit fabce52

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

‎src/gui/editorwidgets/qgsrelationreferencewidget.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,6 @@ void QgsRelationReferenceWidget::init()
556556
// Only connect after iterating, to have only one iterator on the referenced table at once
557557
connect( mComboBox, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsRelationReferenceWidget::comboReferenceChanged );
558558

559-
mReferencedLayer->getFeatures( mComboBox->currentFeatureRequest() ).nextFeature( mFeature );
560-
highlightFeature( mFeature );
561559
updateAttributeEditorFrame( mFeature );
562560
QApplication::restoreOverrideCursor();
563561
}

‎src/gui/qgsfeaturelistcombobox.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ void QgsFeatureListComboBox::onDataChanged( const QModelIndex &topLeft, const QM
160160
QModelIndex modelIndex = mModel->index( currentIndex, 0, QModelIndex() );
161161
mLineEdit->setText( mModel->data( modelIndex, QgsFeatureFilterModel::ValueRole ).toString() );
162162
}
163+
emit currentIndexChanged( currentIndex );
163164
}
164165
}
165166

0 commit comments

Comments
 (0)
Please sign in to comment.