From c5399941a2516c0e451ca34585079730f1c9f3ee Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Thu, 10 Jul 2025 19:46:35 +0200 Subject: [PATCH] [fix:] no path led to crash, MessageBox was not displayed correctly --- MainWindow.axaml.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index 7e45890..1994e0c 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -103,7 +103,12 @@ public partial class MainWindow : Window 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); // var result = DataImport.ImportKasAddressList(filePath); // if (result.Item1)