From f115eb84004050e319b8afcb5a27ca1b093ee3b8 Mon Sep 17 00:00:00 2001 From: DGO Date: Tue, 16 Apr 2019 14:48:05 +0200 Subject: [PATCH] Unsubscribe from closing event or window won't close even after the config dialog was closed. --- src/Soloplan.WhatsON.GUI/Config/View/ConfigWindow.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Soloplan.WhatsON.GUI/Config/View/ConfigWindow.xaml.cs b/src/Soloplan.WhatsON.GUI/Config/View/ConfigWindow.xaml.cs index bc90a7e..b5b3a02 100644 --- a/src/Soloplan.WhatsON.GUI/Config/View/ConfigWindow.xaml.cs +++ b/src/Soloplan.WhatsON.GUI/Config/View/ConfigWindow.xaml.cs @@ -187,6 +187,7 @@ private void WindowClosing(object sender, System.ComponentModel.CancelEventArgs return; } + this.Owner.Closing -= this.OwnerClosing; this.configurationViewModel.ApplyToSourceAndSave(); }