Skip to content

Commit 2bacece

Browse files
committed
Merge pull request #2697 from SebDieBln/FixVectorJoinDialog
Fix vector join dialog
2 parents 81448f8 + 01603d7 commit 2bacece

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app/qgsjoindialog.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ QgsJoinDialog::QgsJoinDialog( QgsVectorLayer* layer, QList<QgsMapLayer*> already
4040

4141
mTargetFieldComboBox->setLayer( mLayer );
4242

43+
mJoinLayerComboBox->setFilters( QgsMapLayerProxyModel::VectorLayer );
4344
mJoinLayerComboBox->setExceptedLayerList( alreadyJoinedLayers );
4445
connect( mJoinLayerComboBox, SIGNAL( layerChanged( QgsMapLayer* ) ), mJoinFieldComboBox, SLOT( setLayer( QgsMapLayer* ) ) );
4546
connect( mJoinLayerComboBox, SIGNAL( layerChanged( QgsMapLayer* ) ), this, SLOT( joinedLayerChanged( QgsMapLayer* ) ) );

src/gui/qgsmaplayerproxymodel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void QgsMapLayerProxyModel::setExceptedLayerList( const QList<QgsMapLayer*>& exc
4646

4747
bool QgsMapLayerProxyModel::filterAcceptsRow( int source_row, const QModelIndex &source_parent ) const
4848
{
49-
if ( mFilters.testFlag( All ) )
49+
if ( mFilters.testFlag( All ) && mExceptList.isEmpty() )
5050
return true;
5151

5252
QModelIndex index = sourceModel()->index( source_row, 0, source_parent );

0 commit comments

Comments
 (0)