Skip to content

Commit

Permalink
Keep cached status up to date. Fixes #37326
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere authored and nyalldawson committed Sep 18, 2020
1 parent 24cfedf commit dd9e0ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/vector/qgsjoindialog.cpp
Expand Up @@ -54,6 +54,7 @@ QgsJoinDialog::QgsJoinDialog( QgsVectorLayer *layer, QList<QgsMapLayer *> alread
connect( mJoinLayerComboBox, &QgsMapLayerComboBox::layerChanged, this, &QgsJoinDialog::joinedLayerChanged );

mCacheInMemoryCheckBox->setChecked( true );
mCacheEnabled = mCacheInMemoryCheckBox->isChecked();

QgsMapLayer *joinLayer = mJoinLayerComboBox->currentLayer();
if ( joinLayer && joinLayer->isValid() )
Expand All @@ -75,7 +76,10 @@ void QgsJoinDialog::setJoinInfo( const QgsVectorLayerJoinInfo &joinInfo )
mJoinLayerComboBox->setLayer( joinInfo.joinLayer() );
mJoinFieldComboBox->setField( joinInfo.joinFieldName() );
mTargetFieldComboBox->setField( joinInfo.targetFieldName() );

mCacheEnabled = joinInfo.isUsingMemoryCache();
mCacheInMemoryCheckBox->setChecked( joinInfo.isUsingMemoryCache() );

mDynamicFormCheckBox->setChecked( joinInfo.isDynamicFormEnabled() );
mEditableJoinLayer->setChecked( joinInfo.isEditable() );
mUpsertOnEditCheckBox->setChecked( joinInfo.hasUpsertOnEdit() );
Expand Down

0 comments on commit dd9e0ba

Please sign in to comment.