Skip to content

Commit

Permalink
Prevent user from setting up a relatrion without at least one field m…
Browse files Browse the repository at this point in the history
…ap (#43445)
  • Loading branch information
jgrocha committed Jun 1, 2021
1 parent c1d7e91 commit a516549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsrelationadddlg.cpp
Expand Up @@ -206,7 +206,7 @@ bool QgsRelationAddDlg::isDefinitionValid()
isValid &= !static_cast<QgsFieldComboBox *>( mFieldsMappingTable->cellWidget( i, 1 ) )->currentField().isNull();
}

return isValid;
return isValid && mFieldsMappingTable->rowCount() > 1;
}

void QgsRelationAddDlg::updateChildRelationsComboBox()
Expand Down

0 comments on commit a516549

Please sign in to comment.