Skip to content

Commit

Permalink
populate join fields combobox if layer already selected
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed May 20, 2015
1 parent 3eb4af3 commit 7aa72ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/qgsjoindialog.cpp
Expand Up @@ -45,6 +45,13 @@ QgsJoinDialog::QgsJoinDialog( QgsVectorLayer* layer, QList<QgsMapLayer*> already
connect( mJoinLayerComboBox, SIGNAL( layerChanged( QgsMapLayer* ) ), this, SLOT( joinedLayerChanged( QgsMapLayer* ) ) );

mCacheInMemoryCheckBox->setChecked( true );

QgsMapLayer *joinLayer = mJoinLayerComboBox->currentLayer();
if ( joinLayer->isValid() )
{
mJoinFieldComboBox->setLayer( joinLayer );
joinedLayerChanged( joinLayer );
}
}

QgsJoinDialog::~QgsJoinDialog()
Expand Down Expand Up @@ -126,7 +133,6 @@ bool QgsJoinDialog::createAttributeIndex() const

void QgsJoinDialog::joinedLayerChanged( QgsMapLayer* layer )
{

mJoinFieldComboBox->clear();

QgsVectorLayer* vLayer = dynamic_cast<QgsVectorLayer*>( layer );
Expand Down

0 comments on commit 7aa72ab

Please sign in to comment.