[fix:] no path led to crash, MessageBox was not displayed correctly

This commit is contained in:
Elias Fierke
2025-07-10 19:46:35 +02:00
parent 37b9648e3f
commit c5399941a2

View File

@@ -103,7 +103,12 @@ public partial class MainWindow : Window
private void BtnCheck_OnClick(object? sender, RoutedEventArgs e) private void BtnCheck_OnClick(object? sender, RoutedEventArgs e)
{ {
if (filePath == null) MessageBox.Show(this, "Bitte zunächst eine Datei auswählen", "Datei fehlt"); if (filePath == null)
{
MessageBox.Show(null, "Bitte zunächst eine Datei auswählen", "Datei fehlt");
return;
}
StartAddressCheck(filePath); StartAddressCheck(filePath);
// var result = DataImport.ImportKasAddressList(filePath); // var result = DataImport.ImportKasAddressList(filePath);
// if (result.Item1) // if (result.Item1)