Skip to content
Permalink
Browse files
Prevent user from setting up a relatrion without at least one field m…
…ap (#43445)
  • Loading branch information
jgrocha committed Jun 1, 2021
1 parent c1d7e91 commit a516549e2a4f5bdb1909fb5969ea6912eb5f0591
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsrelationadddlg.cpp
@@ -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()

0 comments on commit a516549

Please sign in to comment.