MailWindow: Fix crash when using Button in Leseabschluss
Some checks failed
Test / Run tests (push) Has been cancelled

This commit is contained in:
2025-10-29 08:14:37 +01:00
parent 7300b30cf5
commit af98c32026

View File

@@ -954,7 +954,7 @@ namespace Elwig.Windows {
AvaiableDocumentsList.SelectedIndex = 1;
if (AvaiableDocumentsList.SelectedItem is not string s || SelectedDocs.Any(d => d.Type == DocType.DeliveryConfirmation))
return;
SelectedDocs.Add(new(DocType.DeliveryConfirmation, s, (Year, DocumentNonDeliverersInput.IsChecked == true)));
SelectedDocs.Add(new(DocType.DeliveryConfirmation, s, Year));
SelectedDocumentsList.SelectedIndex = SelectedDocs.Count - 1;
RecipientsDeliveryMembersInput.IsChecked = true;
}