File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ void QgsMergeAttributesDialog::createTableWidgetContents()
84
84
85
85
// create combo boxes and insert attribute names
86
86
const QgsFields& fields = mVectorLayer ->pendingFields ();
87
- QgsAttributeList pkAttrList = mVectorLayer ->pendingPkAttributesList ();
87
+ QSet< int > pkAttrList = mVectorLayer ->pendingPkAttributesList (). toSet ();
88
88
89
89
int col = 0 ;
90
90
for ( int idx = 0 ; idx < fields.count (); ++idx )
@@ -483,8 +483,13 @@ void QgsMergeAttributesDialog::on_mFromSelectedPushButton_clicked()
483
483
return ;
484
484
}
485
485
486
+ QSet<int > pkAttributes = mVectorLayer ->pendingPkAttributesList ().toSet ();
486
487
for ( int i = 0 ; i < mTableWidget ->columnCount (); ++i )
487
488
{
489
+ if ( pkAttributes.contains ( i ) )
490
+ {
491
+ continue ;
492
+ }
488
493
QComboBox* currentComboBox = qobject_cast<QComboBox *>( mTableWidget ->cellWidget ( 0 , i ) );
489
494
if ( currentComboBox )
490
495
{
You can’t perform that action at this time.
0 commit comments